Skip to content

Commit

Permalink
Cascade order deletions. Related to #262
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Dec 21, 2023
1 parent 877b890 commit a36afb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/model/GiftCard.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<!-- Refers to the order item unit where this gift card was bought -->
<one-to-one field="orderItemUnit" target-entity="Sylius\Component\Order\Model\OrderItemUnitInterface"
inversed-by="giftCard">
<join-column name="order_item_unit_id" referenced-column-name="id" on-delete="SET NULL"/>
<join-column name="order_item_unit_id" referenced-column-name="id" on-delete="CASCADE"/>
</one-to-one>

<!-- A list of orders where this gift card was applied / used -->
Expand Down

0 comments on commit a36afb7

Please sign in to comment.