开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜