I'm trying to generate entities in symfony2 from an existing empty database (quite large and it would be real pain to create entities from scratch). Sadly, I've encountered rather big problem.
When I try to call the following command (on windows if it changes anything):
php app/console doctrine:mapping:convert --force --from-database annotation ./src/GOutside/GOBundle/Resources/config/doctrine
I got following message:
No Metadata Classes to process.
Before posting I've:
- Validated that my configuration is ok (I can connect to database),
- My bundle is created and path specified above is valid
- Same thing happens when I try to convert to xml/yml as when I try to generate annotation mapping.
Symfony version is 2.4.4, php version is 5.5.3.
Thanks for help in advance :)
Edit after xiidea reply
When I try to use
php app/console doctrine:mapping:import --force GOBundle xml
as suggested by @xiidea, I got following message:
See Question&Answers more detail:osDatabase does not have any mapping information.