Skip to content

Commit

Permalink
Cascade wishlist product on deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobTolkemit authored and damonsson committed Oct 29, 2020
1 parent d66857b commit 0eafbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/WishlistProduct.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</id>

<many-to-one field="wishlist" target-entity="BitBag\SyliusWishlistPlugin\Entity\WishlistInterface" inversed-by="wishlistProducts">
<join-column name="wishlist_id" referenced-column-name="id" nullable="false" />
<join-column name="wishlist_id" referenced-column-name="id" nullable="false" on-delete="CASCADE" />
</many-to-one>

<many-to-one field="product" target-entity="Sylius\Component\Product\Model\ProductInterface">
Expand Down

0 comments on commit 0eafbdd

Please sign in to comment.