0

DISABLED 如何为实体生成集和获取?

app/console doctrine:generate:entities AppAdminBundle
4

1 回答 1

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

于 2013-04-10T16:38:17.583 回答