Skip to content

Commit

Permalink
Prevent eager loading hundreds of countries
Browse files Browse the repository at this point in the history
  • Loading branch information
kayue committed Sep 7, 2022
1 parent c23617f commit 51ac9ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<many-to-one field="menuTaxon" target-entity="Sylius\Component\Core\Model\TaxonInterface">
<join-column name="menu_taxon_id" referenced-column-name="id" nullable="true" on-delete="SET NULL" />
</many-to-one>
<many-to-many field="currencies" target-entity="Sylius\Component\Currency\Model\CurrencyInterface" fetch="EAGER">
<many-to-many field="currencies" target-entity="Sylius\Component\Currency\Model\CurrencyInterface">
<join-table name="sylius_channel_currencies">
<join-columns>
<join-column name="channel_id" referenced-column-name="id" nullable="false" on-delete="CASCADE" />
Expand All @@ -52,7 +52,7 @@
</inverse-join-columns>
</join-table>
</many-to-many>
<many-to-many field="locales" target-entity="Sylius\Component\Locale\Model\LocaleInterface" fetch="EAGER">
<many-to-many field="locales" target-entity="Sylius\Component\Locale\Model\LocaleInterface">
<join-table name="sylius_channel_locales">
<join-columns>
<join-column name="channel_id" referenced-column-name="id" nullable="false" on-delete="CASCADE" />
Expand All @@ -62,7 +62,7 @@
</inverse-join-columns>
</join-table>
</many-to-many>
<many-to-many field="countries" target-entity="Sylius\Component\Addressing\Model\CountryInterface" fetch="EAGER">
<many-to-many field="countries" target-entity="Sylius\Component\Addressing\Model\CountryInterface">
<join-table name="sylius_channel_countries">
<join-columns>
<join-column name="channel_id" nullable="false" on-delete="CASCADE" />
Expand Down

0 comments on commit 51ac9ef

Please sign in to comment.