Skip to content

Commit

Permalink
Update ContentConfiguration.orm.xml - put interfaces for block and pages
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe authored Dec 13, 2024
1 parent bb5343c commit 2d66c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/doctrine/ContentConfiguration.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

<field name="locale" type="string" />

<many-to-one field="block" target-entity="Sylius\CmsPlugin\Entity\Block" inversed-by="contentElements">
<many-to-one field="block" target-entity="Sylius\CmsPlugin\Entity\BlockInterface" inversed-by="contentElements">
<join-column name="block_id" referenced-column-name="id" nullable="true" />
</many-to-one>

<many-to-one field="page" target-entity="Sylius\CmsPlugin\Entity\Page" inversed-by="contentElements">
<many-to-one field="page" target-entity="Sylius\CmsPlugin\Entity\PageInterface" inversed-by="contentElements">
<join-column name="page_id" referenced-column-name="id" nullable="true" />
</many-to-one>
</mapped-superclass>
Expand Down

0 comments on commit 2d66c50

Please sign in to comment.