Reputation: 1068
I am new to Symfony and now I am currently doing an application using this framework. I am now trying to generate entities from an existing database and while I run the following command:
php app\console doctrine:mapping:convert annotation .\src\AppBundle\Resources\config\doctrine
I've got this error message:
No Metadata Classes to process.
Could you please tell me what's happening with this?
Upvotes: 6
Views: 1236
Reputation: 2677
From the docs, it seems you are missing the --from-database argument. I've never used that tool though.
http://symfony.com/fr/doc/current/cookbook/doctrine/reverse_engineering.html
php app/console doctrine:mapping:convert xml ./src/Acme/BlogBundle/Resources/config/doctrine/metadata/orm --from-database --force
Upvotes: 5