[Closed] how configure @ORM\JoinColumn(..., onDelete="CASCADE")

0 votes
asked Sep 7, 2015 in Solved by oda (120 points)
recategorized Oct 13, 2015 by ludek.vodicka

Hi,
How configure how configure @ORM\JoinColumn(..., onDelete="CASCADE") ?
I mean... ON DELETE CASCADE in sql statment.
for example :
CONSTRAINT FOREIGN KEY (...) REFERENCES ... (jobAbbr) ON DELETE CASCADE ON UPDATE CASCADE
(not in doctrine)
Thank you in advance.
Oda

1 Answer

0 votes
answered Sep 7, 2015 by ludek.vodicka Skipper developer (140,450 points)

Unfortunately we can't help you with SQL statements. It depends on ORM (in your case Doctrine) how schema files are translated to SQL.

In case you need help with such topic please use stackoverflow.com site.

Thanks!
Ludek

...