Set null on delete, at database level
This commit is contained in:
parent
30fccf8e83
commit
6b5c97055c
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
|||
<id name="id" column="id">
|
||||
<generator strategy="UUID" />
|
||||
</id>
|
||||
<many-to-one target-entity="Doctrine\Tests\Models\OrnementalOrphanRemoval\Person" field="person" orphan-removal="true" />
|
||||
<many-to-one target-entity="Doctrine\Tests\Models\OrnementalOrphanRemoval\Person" field="person" orphan-removal="true" >
|
||||
<join-column on-delete="SET NULL" />
|
||||
</many-to-one>
|
||||
</entity>
|
||||
</doctrine-mapping>
|
||||
|
|
Loading…
Add table
Reference in a new issue