(doctrine2 + symfony2) cascading remove : integrity constraint violation 1451
问题 First, sorry for my poor English... I got four entities : User, Application, Bundle & Entity. Here are their relations (with cascading persist & remove, see code below) : User 1-n Application Application 1-n Bundle Bundle 1-n Entity It's working fine. But an User can have two of his entities as default, and I need to access them directly. So I add on User two fields, entity1 & entity2, with a 1-1 relation. And now my app crashes : An exception occurred while executing 'DELETE FROM bundle