Generate models in doctrine2
In doctrine1 it was possible to gen开发者_如何学编程erate-models-db. How to do that in doctrine2 from cli?
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
精彩评论