Skip to content

Commit

Permalink
Update ZoneMemberZone.orm.xml
Browse files Browse the repository at this point in the history
A zone cannot be deleted if it has a member. Deleting a zone should delete members as well.
  • Loading branch information
agounaris committed Jun 1, 2015
1 parent 41259ea commit 68f5f5e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -15,7 +15,7 @@

<entity name="Sylius\Component\Addressing\Model\ZoneMemberZone">
<many-to-one field="zone" target-entity="Sylius\Component\Addressing\Model\ZoneInterface">
<join-column name="zone_id" referenced-column-name="id" />
<join-column name="zone_id" referenced-column-name="id" on-delete="CASCADE" />
</many-to-one>
</entity>

Expand Down

0 comments on commit 68f5f5e

Please sign in to comment.