我的项目有一个模块化的文件夹结构,根目录下有一个modules
文件夹,在这个文件夹中有更多的文件夹,每个文件夹代表我的应用程序中的一个模块。反过来,这些文件夹每个都有一个src
文件夹,然后包含一个表示包含的代码所代表的命名空间的文件夹。
例如:
./module
./Application
./src
./Application
./Controller
./Service
./View
./Products
./src
./Products
./Controller
./Service
./View
./Users
./src
./Users
./Controller
./Service
./View
我的问题是如何在运行doctrine orm:generate-entities
时将Doctrine配置为生成实体,以便每个模块都以/src/NAMESPACE/Entities
文件夹结束?正如我在运行此命令时所表现的那样,entites的生成如下:
./module
./Application
./Entities <-- generated by Doctrine
./src
./Application
./Controller
./Service
./View
./Products
./Entities <-- generated by Doctrine
./src
./Products
./Controller
./Service
./View
./Users
./Entities <-- generated by Doctrine
./src
./Users
./Controller
./Service
./View
但我想要这个:
./module
./Application
./src
./Application
./Controller
./Entities <-- generated by Doctrine
./Service
./View
./Products
./src
./Products
./Controller
./Entities <-- generated by Doctrine
./Service
./View
./Users
./src
./Users
./Controller
./Entities <-- generated by Doctrine
./Service
./View