我想为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