[FLOW3-general] flow and ON DELETE CASCADE ON UPDATE CASCADE

mario chiari m at mariochiari.net
Sun Apr 14 23:29:16 CEST 2013


Hi

to fix a delete query on my toy extension, I had to ALTER TABLE with ON
DELETE CASCADE ON UPDATE CASCADE by hand on the db.

I am not seeing which annotation I have to use to force flow to do it.
My toy extension has Father and Son objects, where

/**
	 * The sons
	 * @var \Doctrine\Common\Collections\Collection<\Mario\Basic\Domain
\Model\Son>
	 * @ORM\OneToMany(mappedBy="father", cascade={"persist"})
	 */
	protected $sons;

/**
	 * The father
	 * @var \Mario\Basic\Domain\Model\Father
	 * @ORM\ManyToOne(inversedBy="sons")
	 */
	protected $father;

thanks
cheers
mario





More information about the Flow mailing list