Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaxonRepository decoration type error #96

Open
QuentinDess opened this issue Feb 10, 2024 · 1 comment
Open

TaxonRepository decoration type error #96

QuentinDess opened this issue Feb 10, 2024 · 1 comment

Comments

@QuentinDess
Copy link

QuentinDess commented Feb 10, 2024

Hello ✋
I face an issue with a new setup of Sylius and this plugin
I follow every step of the documentation , and my sylius/sylius version is 1.11.15
The issue is located with this config

sylius_taxonomy:
    resources:
        taxon:
            classes:
                model: App\Entity\Taxonomy\Taxon
                repository: BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository
            translation:
                classes:
                    model: App\Entity\Taxonomy\TaxonTranslation

When i go to any kind of url i have this error

BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository::__construct(): Argument #1 ($decoratedRepository) 
must be of type Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface, 

ContainerQSsNVi1\EntityManager_9a5be93 given, called in /backend/var/cache/dev/ContainerQSsNVi1/getSylius_Repository_TaxonService.php on line 32

Any idea about this ?
I try to decorate manually the file but still the same .
I a m using symfony 5.4
Thanks

@Dragnucs
Copy link

Facing the same issue. For now I removed the line repository: BitBag\SyliusVueStorefront2Plugin\Doctrine\Repository\TaxonRepository and looking what issues this change may bring, yet, I could get past this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants