How exactly to use onDelete = “SET NULL” - Doctrine2

后端 未结 1 1531
逝去的感伤
逝去的感伤 2021-01-01 09:31

I have a class Category containing this:

/**
 * @ORM\\OneToMany(targetEntity=\"Friend\", mappedBy=\"category\")
 * @ORM\\OrderBy({\"name\" =         


        
相关标签:
1条回答
  • 2021-01-01 10:08

    This must be a crazy answer but did you update database schema? onDelete="SET NULL" is on database level, it must work on innoDB.

    0 讨论(0)
提交回复
热议问题