Skip to content

Commit

Permalink
Merge pull request #11 from m0sviatoslav/hotfix/interface-mapping
Browse files Browse the repository at this point in the history
added interface to resources and mappings
  • Loading branch information
patrick477 authored Jan 30, 2019
2 parents fce02d4 + 5c30ebb commit a07c8e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/ShippingExport.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BitBag\SyliusShippingExportPlugin\Entity\ShippingExport:
cascade: ['ALL']
manyToOne:
shippingGateway:
targetEntity: BitBag\SyliusShippingExportPlugin\Entity\ShippingGateway
targetEntity: BitBag\SyliusShippingExportPlugin\Entity\ShippingGatewayInterface
inversedBy: shippingExports
joinColumn:
name: shipping_gateway_id
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine/ShippingGateway.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ BitBag\SyliusShippingExportPlugin\Entity\ShippingGateway:
referencedColumnName: id
oneToMany:
shippingExports:
targetEntity: BitBag\SyliusShippingExportPlugin\Entity\ShippingExport
targetEntity: BitBag\SyliusShippingExportPlugin\Entity\ShippingExportInterface
mappedBy: shippingGateway
orphanRemoval: true
1 change: 1 addition & 0 deletions src/Resources/config/resource/bitbag_shipping_export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sylius_resource:
bitbag.shipping_export:
classes:
model: BitBag\SyliusShippingExportPlugin\Entity\ShippingExport
interface: BitBag\SyliusShippingExportPlugin\Entity\ShippingExportInterface
repository: BitBag\SyliusShippingExportPlugin\Repository\ShippingExportRepository
form: BitBag\SyliusShippingExportPlugin\Form\Type\ShippingGatewayType
controller: BitBag\SyliusShippingExportPlugin\Controller\ShippingExportController
1 change: 1 addition & 0 deletions src/Resources/config/resource/bitbag_shipping_gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sylius_resource:
bitbag.shipping_gateway:
classes:
model: BitBag\SyliusShippingExportPlugin\Entity\ShippingGateway
interface: BitBag\SyliusShippingExportPlugin\Entity\ShippingGatewayInterface
repository: BitBag\SyliusShippingExportPlugin\Repository\ShippingGatewayRepository
form: BitBag\SyliusShippingExportPlugin\Form\Type\ShippingGatewayType
controller: BitBag\SyliusShippingExportPlugin\Controller\ShippingGatewayController

0 comments on commit a07c8e9

Please sign in to comment.