From 8dad701921bf88ed6c26f4cf455494499c0ee83d Mon Sep 17 00:00:00 2001 From: Patryk Date: Fri, 24 Aug 2018 15:47:26 +0200 Subject: [PATCH] Doctrine mapping fixes --- src/Resources/config/doctrine/Block.orm.yml | 2 +- src/Resources/config/doctrine/Page.orm.yml | 2 +- src/Resources/config/resources/block.yml | 2 ++ src/Resources/config/resources/frequently_asked_question.yml | 2 ++ src/Resources/config/resources/page.yml | 2 ++ src/Resources/config/resources/section.yml | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Resources/config/doctrine/Block.orm.yml b/src/Resources/config/doctrine/Block.orm.yml index e591e3bad..dc103af33 100755 --- a/src/Resources/config/doctrine/Block.orm.yml +++ b/src/Resources/config/doctrine/Block.orm.yml @@ -22,7 +22,7 @@ BitBag\SyliusCmsPlugin\Entity\Block: type: boolean manyToMany: sections: - targetEntity: BitBag\SyliusCmsPlugin\Entity\Section + targetEntity: BitBag\SyliusCmsPlugin\Entity\SectionInterface joinTable: name: bitbag_cms_block_sections joinColumns: diff --git a/src/Resources/config/doctrine/Page.orm.yml b/src/Resources/config/doctrine/Page.orm.yml index f5c2d200e..3199e8683 100755 --- a/src/Resources/config/doctrine/Page.orm.yml +++ b/src/Resources/config/doctrine/Page.orm.yml @@ -43,7 +43,7 @@ BitBag\SyliusCmsPlugin\Entity\Page: referencedColumnName: id onDelete: CASCADE sections: - targetEntity: BitBag\SyliusCmsPlugin\Entity\Section + targetEntity: BitBag\SyliusCmsPlugin\Entity\SectionInterface joinTable: name: bitbag_cms_page_sections joinColumns: diff --git a/src/Resources/config/resources/block.yml b/src/Resources/config/resources/block.yml index 8c34b18e8..d01512997 100755 --- a/src/Resources/config/resources/block.yml +++ b/src/Resources/config/resources/block.yml @@ -4,9 +4,11 @@ sylius_resource: driver: doctrine/orm classes: model: BitBag\SyliusCmsPlugin\Entity\Block + interface: BitBag\SyliusCmsPlugin\Entity\BlockInterface form: BitBag\SyliusCmsPlugin\Form\Type\BlockType repository: BitBag\SyliusCmsPlugin\Repository\BlockRepository controller: BitBag\SyliusCmsPlugin\Controller\BlockController translation: classes: model: BitBag\SyliusCmsPlugin\Entity\BlockTranslation + interface: BitBag\SyliusCmsPlugin\Entity\BlockTranslationInterface diff --git a/src/Resources/config/resources/frequently_asked_question.yml b/src/Resources/config/resources/frequently_asked_question.yml index d4de87588..58762ab04 100755 --- a/src/Resources/config/resources/frequently_asked_question.yml +++ b/src/Resources/config/resources/frequently_asked_question.yml @@ -4,8 +4,10 @@ sylius_resource: driver: doctrine/orm classes: model: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestion + interface: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestionInterface form: BitBag\SyliusCmsPlugin\Form\Type\FrequentlyAskedQuestionType repository: BitBag\SyliusCmsPlugin\Repository\FrequentlyAskedQuestionRepository translation: classes: model: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestionTranslation + interface: BitBag\SyliusCmsPlugin\Entity\FrequentlyAskedQuestionTranslationInterface diff --git a/src/Resources/config/resources/page.yml b/src/Resources/config/resources/page.yml index 25bd58cbe..3c0fe836e 100755 --- a/src/Resources/config/resources/page.yml +++ b/src/Resources/config/resources/page.yml @@ -4,9 +4,11 @@ sylius_resource: driver: doctrine/orm classes: model: BitBag\SyliusCmsPlugin\Entity\Page + interface: BitBag\SyliusCmsPlugin\Entity\PageInterface form: BitBag\SyliusCmsPlugin\Form\Type\PageType repository: BitBag\SyliusCmsPlugin\Repository\PageRepository controller: BitBag\SyliusCmsPlugin\Controller\PageController translation: classes: model: BitBag\SyliusCmsPlugin\Entity\PageTranslation + interface: BitBag\SyliusCmsPlugin\Entity\PageTranslationInterface diff --git a/src/Resources/config/resources/section.yml b/src/Resources/config/resources/section.yml index 42edf4da7..0dcc5c22c 100755 --- a/src/Resources/config/resources/section.yml +++ b/src/Resources/config/resources/section.yml @@ -4,8 +4,10 @@ sylius_resource: driver: doctrine/orm classes: model: BitBag\SyliusCmsPlugin\Entity\Section + interface: BitBag\SyliusCmsPlugin\Entity\SectionInterface form: BitBag\SyliusCmsPlugin\Form\Type\SectionType repository: BitBag\SyliusCmsPlugin\Repository\SectionRepository translation: classes: model: BitBag\SyliusCmsPlugin\Entity\SectionTranslation + interface: BitBag\SyliusCmsPlugin\Entity\SectionTranslationInterface