Ok I think this is really a bug in Symfony.

I removed the constraint manually in the database and tried to delete the 
entity again.

With constraint:
[2014-06-11 22:17:44] app.INFO: Deleting module 132 ["doctrine"] []
[2014-06-11 22:17:44] app.INFO: Deleting product... ["doctrine"] []
[2014-06-11 22:17:44] doctrine.DEBUG: "START TRANSACTION" [] []
[2014-06-11 22:17:44] doctrine.DEBUG: DELETE FROM product_error WHERE id = 
? [277] []
[2014-06-11 22:17:44] doctrine.DEBUG: DELETE FROM module_error WHERE id = ? 
[456] []
[2014-06-11 22:17:44] doctrine.DEBUG: DELETE FROM product WHERE id = ? [25] 
[]
[2014-06-11 22:17:44] doctrine.DEBUG: "ROLLBACK" [] []

After removing constraint:
[2014-06-11 22:18:55] app.INFO: Deleting module 132 ["doctrine"] []
[2014-06-11 22:18:55] app.INFO: Deleting product... ["doctrine"] []
[2014-06-11 22:18:55] doctrine.DEBUG: "START TRANSACTION" [] []
[2014-06-11 22:18:55] doctrine.DEBUG: DELETE FROM product_error WHERE id = 
? [277] []
[2014-06-11 22:18:55] doctrine.DEBUG: DELETE FROM module_error WHERE id = ? 
[456] []

*[2014-06-11 22:18:55] doctrine.DEBUG: DELETE FROM product WHERE id = ? 
[25] [][2014-06-11 22:18:55] doctrine.DEBUG: DELETE FROM module WHERE id = 
? [132] []*
[2014-06-11 22:18:55] doctrine.DEBUG: DELETE FROM calendar WHERE id = ? 
[58] []
[2014-06-11 22:18:55] doctrine.DEBUG: "COMMIT" [] []

As you can see, the order of deletion of product and module is incorrect !

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to