From 2064d4714ffdbf779915cf5b5556ba10cf938535 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Mon, 25 Jul 2022 10:37:04 +0200 Subject: [PATCH] Add missing overridden Catalog Promotions-related models --- composer.json | 4 +++- config/packages/_sylius.yaml | 9 +++++++++ src/Entity/Promotion/CatalogPromotion.php | 16 ++++++++++++++++ src/Entity/Promotion/CatalogPromotionAction.php | 16 ++++++++++++++++ src/Entity/Promotion/CatalogPromotionScope.php | 16 ++++++++++++++++ 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 src/Entity/Promotion/CatalogPromotion.php create mode 100644 src/Entity/Promotion/CatalogPromotionAction.php create mode 100644 src/Entity/Promotion/CatalogPromotionScope.php diff --git a/composer.json b/composer.json index 5e40198b52..f3922a9118 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/config/packages/_sylius.yaml b/config/packages/_sylius.yaml index 6acae4415b..1da29b94d8 100644 --- a/config/packages/_sylius.yaml +++ b/config/packages/_sylius.yaml @@ -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 diff --git a/src/Entity/Promotion/CatalogPromotion.php b/src/Entity/Promotion/CatalogPromotion.php new file mode 100644 index 0000000000..7928a6c31e --- /dev/null +++ b/src/Entity/Promotion/CatalogPromotion.php @@ -0,0 +1,16 @@ +