How can I use doctrine/phpcr-odm driver on custom entities with sylius resources ?
My configuration is like this:
sylius_resource:
resources:
app.article_document:
driver: doctrine/phpcr-odm
classes:
model: AppBundle\Document\ArticleDocument
factory: AppBundle\Factory\ArticleDocumentFactory
repository: AppBundle\Repository\StaticContentRepository
form:
default: AppBundle\Form\Type\ArticleDocumentType
But I have this error message:
Resource "app.article_document" uses driver "doctrine/phpcr-odm", but this driver has not been enabled.
You have to enable it in your config.yml
sylius_resource:
drivers:
- doctrine/orm
- doctrine/phpcr-odm
@Raptek Thanks a lot ! I'm gonna try that tomorrow.
@pjedrzejewski I don't found anything about that in sylius documentation, I think I'm gonna do a PR to improve doc.
Most helpful comment
@Raptek Thanks a lot ! I'm gonna try that tomorrow.
@pjedrzejewski I don't found anything about that in sylius documentation, I think I'm gonna do a PR to improve doc.