[Flow] Reset model value for reference (set to null)
Steffen Wickham
steffen at gaming-inc.de
Sun May 12 02:33:10 CEST 2013
Hi guys,
I know that this question had been already asked a long while ago, but
honestly I can't find it in my mailinglist archive.
I've got a ManyToOne relation in my model "RefereeAssignment" which
refers to my model "Position". Under some circumstances a position
reference has to be reset within RefereeAssignment. I'd tried to pass
"NULL" to the repository but it crashes as expected with the following
error:
"Catchable Fatal Error: Argument 1 passed to
AFSVN\Basic\Domain\Model\RefereeAssignment_Original::setPosition() must
be an instance of AFSVN\Basic\Domain\Model\Position, null given, called
in /[...]/AFSVN_Basic_Controller_MatchController.php on line 462 and
defined in /[...]/AFSVN_Basic_Domain_Model_RefereeAssignment.php line 77"
Does anybody remember how this could be archived or know how to solve it?
Cheers,
Steffen
More information about the Flow
mailing list