Reputation: 10024
In doctrine1 it was possible to generate-models-db. How to do that in doctrine2 from cli?
Upvotes: 0
Views: 970
Reputation: 10024
I end up implementing new command https://github.com/umpirsky/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesDbCommand.php :)
Later, I realized you can
php doctrine orm:convert-mapping --from-database yml /path/to/mapping-path-converted-to-yml
Upvotes: 1