Skip to content

Commit

Permalink
bug #806 Add missing overridden Catalog Promotions-related models (Za…
Browse files Browse the repository at this point in the history
…les0123)

This PR was merged into the 1.11 branch.

Discussion
----------

They should've been added just after the 1.11.0 release 💃

Commits
-------

2064d47 Add missing overridden Catalog Promotions-related models
  • Loading branch information
GSadee authored Jul 25, 2022
2 parents e2b0164 + 2064d47 commit 375af6e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
},
"sort-packages": true,
"allow-plugins": {
"symfony/flex": true
"symfony/flex": true,
"dealerdirect/phpcodesniffer-composer-installer": false,
"phpstan/extension-installer": false
}
},
"extra": {
Expand Down
9 changes: 9 additions & 0 deletions config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ sylius_product:

sylius_promotion:
resources:
catalog_promotion:
classes:
model: App\Entity\Promotion\CatalogPromotion
catalog_promotion_action:
classes:
model: App\Entity\Promotion\CatalogPromotionAction
catalog_promotion_scope:
classes:
model: App\Entity\Promotion\CatalogPromotionScope
promotion:
classes:
model: App\Entity\Promotion\Promotion
Expand Down
16 changes: 16 additions & 0 deletions src/Entity/Promotion/CatalogPromotion.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace App\Entity\Promotion;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\CatalogPromotion as BaseCatalogPromotion;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion")
*/
class CatalogPromotion extends BaseCatalogPromotion
{
}
16 changes: 16 additions & 0 deletions src/Entity/Promotion/CatalogPromotionAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace App\Entity\Promotion;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Promotion\Model\CatalogPromotionAction as BaseCatalogPromotionAction;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion_action")
*/
class CatalogPromotionAction extends BaseCatalogPromotionAction
{
}
16 changes: 16 additions & 0 deletions src/Entity/Promotion/CatalogPromotionScope.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace App\Entity\Promotion;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\CatalogPromotionScope as BaseCatalogPromotionScope;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_catalog_promotion_scope")
*/
class CatalogPromotionScope extends BaseCatalogPromotionScope
{
}

0 comments on commit 375af6e

Please sign in to comment.