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.
可以从通过此命令编写的类生成数据库
doctrine:mongodb:schema:create
有没有办法反过来做到这一点?我的意思是从数据库生成类?
您可以从映射元数据(YML 或 XML)生成映射类:
// from php app/console doctrine:mongodb:generate:documents // Generate document classes and method stubs from your mapping information.
干杯!