Set null on delete, at database level
This commit is contained in:
parent
30fccf8e83
commit
6b5c97055c
@ -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…
x
Reference in New Issue
Block a user