doctrine:mongodb:generate:documents找不到包

时间:2016-08-16 08:28:29

标签: php mongodb symfony doctrine-orm

我想为bundle中的特定文档生成Getters和Setter。它适用于整个捆绑

php bin/console doctrine:mongodb:generate:documents AppBundle

但我无法找到如何指定一个文档。实体类位于

src/AppBundle/Document/Settings/Settings.php

这些都没有奏效:

php bin/console doctrine:mongodb:generate:documents AppBundle:Settings
php bin/console doctrine:mongodb:generate:documents AppBundle:Document:Settings:Settings
php bin/console doctrine:mongodb:generate:documents AppBundle\Settings

修改

--document选项可以解决这个问题

php bin/console doctrine:mongodb:generate:documents AppBundle --document Settings

0 个答案:

没有答案