如何为多个symfony bundle设置相同的实体?

时间:2015-01-13 07:47:32

标签: symfony doctrine-orm

如果多个捆绑包的实体设置相同,我是否还需要为每个捆绑包重复一次?

            mappings: # Required
                     ApplicationUserBundle:
                                         is_bundle: false
                                         dir: doctrine/Entities
                                         prefix: Entities
                                         type: staticphp
                     ApplicationAdminBundle:
                                         is_bundle: false
                                         dir: doctrine/Entities
                                         prefix: Entities
                                         type: staticphp

或者有没有办法为几个包设置相同的实体设置而不重复它们?

0 个答案:

没有答案