Sylius Product Bundle as a dependency

I have an existing Symfony2 project that I am trying to install and use specific packages from a Sylius project as dependencies. Here is my problem, I added SyliusProductBundle and all its dependencies; however, when I try to update my database schema with:

app / console doctrine: schema: update --force

I get the following error:

[Doctrine\Common\Persistence\Mapping\MappingException]                     
Class 'Sylius\Bundle\ProductBundle\Model\ProductInterface' does not exist 

I'm not sure why this is happening, although it seems to be some kind of name problem?

I have the following configuration:

sylius_resource:
    resources:
        src.user:
            driver: doctrine/orm
            templates: App:User
            classes:
                model: SRC\Bundle\UserBundle\Entity\User

sylius_product:
    driver: doctrine/orm
    classes:
        product:
            model: Sylius\Bundle\CoreBundle\Model\Product
            controller: Sylius\Bundle\CoreBundle\Controller\ProductController
            repository: Sylius\Bundle\CoreBundle\Repository\ProductRepository
            form: Sylius\Bundle\CoreBundle\Form\Type\ProductType
+3
source share
1 answer

Please register the kit before the DoctrineBundle. This is important because we use listeners that must be processed first.

+2
source

All Articles