Skip to content

Commit

Permalink
Doctrine mapping fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed Aug 24, 2018
1 parent 3655032 commit 8dad701
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/Block.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/Page.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/config/resources/block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/Resources/config/resources/frequently_asked_question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/Resources/config/resources/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/Resources/config/resources/section.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8dad701

Please sign in to comment.