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

Pankaj Lele pankaj at lelesys.com
Mon Apr 15 11:16:32 CEST 2013


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 


-- 
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele



More information about the Flow mailing list