Skip to content

Commit

Permalink
Cascade wishlist on user deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobTolkemit authored and damonsson committed Jun 17, 2020
1 parent 379efa8 commit 6e839aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/Wishlist.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</one-to-many>

<one-to-one field="shopUser" target-entity="Sylius\Component\Core\Model\ShopUserInterface">
<join-column name="shop_user_id" referenced-column-name="id" nullable="true" />
<join-column name="shop_user_id" referenced-column-name="id" nullable="true" on-delete="CASCADE" />
</one-to-one>

</mapped-superclass>
Expand Down

0 comments on commit 6e839aa

Please sign in to comment.