stof / StofDoctrineExtensionsBundle

Integration bundle for DoctrineExtensions by l3pp4rd in Symfony
https://symfony.com/bundles/StofDoctrineExtensionsBundle/current/index.html
MIT License
1.89k stars 380 forks source link

Prevent running into metadata driver error (Symfony 6.4) #492

Open fabpico opened 2 weeks ago

fabpico commented 2 weeks ago

After configuring the bundle on Symfony 6.4, when doing php bin/console doctrine:schema:update --dump-sql I received following error:

Can only configure "xml", "yml", "php", "staticphp" or "attribute" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "doctrine.orm.default_metadata_driver" service definition.

According to Symfony docs, annotations are deprecated since Symfony 6.4. By removing the lines type: annotation, the translating worked so far.