[FLOW3-general] Doctrine Cascade DELETE
Thomas Plessis
t.plessis at totemnumerique.com
Fri Nov 25 17:17:08 CET 2011
Hi guys!
I've some question about the doctrine relations. In one class, i've an arraycollection of Items, like that :
/**
* @var \Doctrine\Common\Collections\Collection<\Totem\Lewin\Domain\Model\Item>
* @ORM\OneToMany(mappedBy="member", cascade={"all"})
* /
protected $items;
And in my item's class, i've the attribute "member", with the following annotations :
/**
* The member
* @var \Totem\Lewin\Domain\Model\Member
* @ORM\ManyToOne(inversedBy="items")
*/
protected $member;
So, normally, when a member is deleted, each items linked to the this member are also deleted? right?
but it doesn't work anymore… :/
Any ideas?
regards,
Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55
More information about the FLOW3-general
mailing list