(doctrine2 + symfony2) cascading remove : integrity constraint violation 1451

后端 未结 4 1315
忘了有多久
忘了有多久 2020-12-05 15:01

First, sorry for my poor English...

I got four entities : User, Application, Bundle & Entity. Here are their relations (with cascading persist & remove, see

4条回答
  •  一个人的身影
    2020-12-05 15:48

    onDelete="CASCADE" also works fine. But don't forget to run app/console doctrine:schema:update --force before DB level changes will take an effect.

提交回复
热议问题