SyliusVueStorefront2Plugin icon indicating copy to clipboard operation
SyliusVueStorefront2Plugin copied to clipboard

TaxonRepository decoration type error

Open QuentinDess opened this issue 1 year ago • 1 comments

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

QuentinDess avatar Feb 10 '24 16:02 QuentinDess

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.

Dragnucs avatar Feb 16 '24 21:02 Dragnucs