Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在学说 1 中,可以生成模型数据库。如何在cli的教义2中做到这一点?
我最终实现了新命令https://github.com/umpirsky/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesDbCommand.php :)
后来,我意识到你可以
php doctrine orm:convert-mapping --from-database yml /path/to/mapping-path-converted-to-yml