diff --git a/doc/installation.md b/doc/installation.md index 14fb0bde..83b13484 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -68,7 +68,7 @@ alias: BitBag\SyliusGraphqlPlugin ``` -4. In _sylius.yaml add mappings for promotion and product attribute so graphql can see them properly +4. In _sylius.yaml add mappings for product attribute and taxonomy repository so graphql can see them properly ```yml sylius_attribute: @@ -80,14 +80,11 @@ classes: model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue - sylius_promotion: - resources: - promotion_coupon: - classes: - model: Sylius\Component\Promotion\Model\PromotionCoupon - promotion: - classes: - model: Sylius\Component\Core\Model\Promotion + sylius_taxonomy: + resources: + taxon: + classes: + repository: BitBag\SyliusGraphqlPlugin\Doctrine\Repository\TaxonRepository ``` 5. Import routing in routes.yaml diff --git a/src/Model/ProductAttributeValue.php b/src/Model/ProductAttributeValue.php index 1b534084..ec2db06c 100644 --- a/src/Model/ProductAttributeValue.php +++ b/src/Model/ProductAttributeValue.php @@ -11,7 +11,7 @@ namespace BitBag\SyliusGraphqlPlugin\Model; use Sylius\Component\Attribute\Model\AttributeInterface; -use Sylius\Component\Product\Model\ProductAttributeValue as BaseAttributeValue; +use Sylius\Component\Attribute\Model\AttributeValue as BaseAttributeValue; use Webmozart\Assert\Assert; class ProductAttributeValue extends BaseAttributeValue diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml index 280da462..9c75f956 100644 --- a/tests/Application/config/packages/_sylius.yaml +++ b/tests/Application/config/packages/_sylius.yaml @@ -14,16 +14,7 @@ sylius_attribute: subject: Sylius\Component\Core\Model\Product attribute_value: classes: - model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue - -sylius_promotion: - resources: - promotion_coupon: - classes: - model: Sylius\Component\Core\Model\PromotionCoupon - promotion: - classes: - model: Sylius\Component\Core\Model\Promotion + model: BitBag\SyliusGraphqlPlugin\Model\ProductAttributeValue sylius_taxonomy: resources: