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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fabpico
Copy link

@fabpico fabpico commented Aug 30, 2024

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.

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

Successfully merging this pull request may close these issues.

1 participant