[Flow] How to build One-To-Many Forms > no reference to the parent object
Axel Wüstemann
awu at qbus.de
Tue Nov 5 21:26:50 CET 2013
Am 05.11.2013 20:58, schrieb mario chiari:
> Hi,
>
> you are very welcome, but unfortunately I am not a TYPO3/Flow expert.
But it is obviously that you are some steps ahead ;=)
1. there is no reference to the perent object "depositInspection" within
the "deposits" children. This property is NULL
> how did you define the properties? Double check how/whether you used
> mappedBy="..." and cascade={"persist"}.
cascade={"persist"} I did not use, but it doesn't change anything
class DepositInspection (Parent)
{
...
/**
* @var
\Doctrine\Common\Collections\Collection<\XXX\Intranet\FisheryInspection\Domain\Model\Deposit>
* @ORM\OneToMany(mappedBy="depositInspection", cascade={"persist"})
*/
protected $deposits;
...
}
class Deposit (Child)
{
...
/**
* @var XXX\Intranet\FisheryInspection\Domain\Model\DepositInspection
* @ORM\ManyToOne(inversedBy="deposits")
* @ORM\JoinColumn(name="ANLANDEKTR_ID", referencedColumnName="ID")
*/
protected $depositInspection;
...
}
More information about the Flow
mailing list