我是Doctrine2的新手,想知道如何告诉Doctrine我的实体使用哪个命名空间.我目前的配置是这样的.
我的所有实体都在命名空间"project\entity"中.所以,每当我想获得实体"颜色"时,我必须写:
$em->getRepository("project\\entity\\Color")
如何配置Doctrine始终使用命名空间"project\entity"?
configuration entity annotations namespaces doctrine-orm
annotations ×1
configuration ×1
doctrine-orm ×1
entity ×1
namespaces ×1