Skip to content

Commit

Permalink
Update installation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe authored Oct 18, 2022
1 parent 20a8ac5 commit 41640cc
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,25 @@
8. In _sylius.yaml add mappings for product attribute and taxonomy repository so graphql can see them properly
```yml
sylius_attribute:
driver: doctrine/orm
resources:
product:
subject: Sylius\Component\Core\Model\Product
attribute_value:
classes:
model: BitBag\SyliusVueStorefront2Plugin\Model\ProductAttributeValue
sylius_taxonomy:
resources:
taxon:
classes:
repository: BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository
```
9. If you're extending Sylius' `ProductAttributeValue` entity, please use our trait inside: `BitBag\SyliusVueStorefront2Plugin\Model\ProductAttributeValueTrait`.
9. If you're extending Sylius' `ProductAttributeValue` entity, please use our trait inside: `BitBag\SyliusVueStorefront2Plugin\Model\ProductAttributeValueTrait`. Otherwise, please create an entity, which uses the trait and setup the Sylius resource in _sylius.yaml:
```yml
sylius_attribute:
driver: doctrine/orm
resources:
product:
subject: Sylius\Component\Core\Model\Product
attribute_value:
classes:
model: App\Entity\ProductAttributeValue
```
10. Please add the Doctrine mapping configuration into your project:
Expand Down

0 comments on commit 41640cc

Please sign in to comment.