Skip to content

Commit

Permalink
Merge pull request #201 from BitBagCommerce/wishlist-orm-index
Browse files Browse the repository at this point in the history
Wishlist: add token index
  • Loading branch information
Wojdylak authored Mar 20, 2023
2 parents e6894b7 + d331445 commit 3471aff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Resources/config/doctrine/Wishlist.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<field name="token" type="string" column="token" />

<one-to-many field="wishlistProducts"
target-entity="BitBag\SyliusWishlistPlugin\Entity\WishlistProductInterface"
<one-to-many field="wishlistProducts"
target-entity="BitBag\SyliusWishlistPlugin\Entity\WishlistProductInterface"
mapped-by="wishlist" orphan-removal="true"
>
<cascade>
Expand All @@ -30,6 +30,9 @@
<join-column name="channel_id" on-delete="CASCADE" />
</many-to-one>

<indexes>
<index name="token_idx" columns="token"/>
</indexes>
</mapped-superclass>

</doctrine-mapping>

0 comments on commit 3471aff

Please sign in to comment.