DISABLED如何为实体生成set和get?
app/console doctrine:generate:entities AppAdminBundle
答案 0 :(得分:1)
为实体生成getter和setter是doctrine:generate:entities
命令(http://symfony.com/doc/current/book/doctrine.html#generating-getters-and-setters)的主要目标。
如果您只需要实体,请拨打doctrine:generate:entity
命令(http://symfony.com/doc/current/book/doctrine.html#creating-an-entity-class)。