禁用生成集和获取实体

时间:2013-04-10 14:48:10

标签: symfony doctrine-orm

DISABLED如何为实体生成set和get?

app/console doctrine:generate:entities AppAdminBundle

1 个答案:

答案 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)。