1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Set null on delete, at database level

This commit is contained in:
Grégoire Paris 2017-10-14 11:03:52 +02:00
parent 30fccf8e83
commit 6b5c97055c
No known key found for this signature in database
GPG Key ID: 24D48B8012B116BF

View File

@ -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>