[FLOW3-general] flow and ON DELETE CASCADE ON UPDATE CASCADE
mario chiari
m at mariochiari.net
Wed Apr 17 12:54:20 CEST 2013
On Mon, 2013-04-15 at 14:46 +0530, Pankaj Lele wrote:
> Hi Mario,
>
> > 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
>
> Try the orphanRemoval annotation.
> http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/working-with-associations.html#orphan-removal
>
>
YES! Thanks so much.
cheers
mario
More information about the Flow
mailing list