Symfony 2中的2级实体文件夹

Dan*_*iel 10 symfony doctrine-orm

我在Symfony2包中有一个两级实体文件夹:

CommonBundle/Entity/EntityFolder1/EntityA.php
CommonBundle/Entity/EntityFolder2
CommonBundle/Entity/EntityFolder3
CommonBundle/Entity/EntityFolder4
Run Code Online (Sandbox Code Playgroud)

当我尝试获取其中一个文件夹中的实体的存储库时:

$product = $this->getDoctrine()->getRepository('CommonBundle:EntityA')->find(1); 
Run Code Online (Sandbox Code Playgroud)

Symfony不承认这一点CommonBundle:EntityA.

我也尝试过CommonBundle:EntityFolder1:EntityA.

警告:class_parents():类CommonBundle\Entity\EntityA不存在且无法加载

Eln*_*mov 21

是的CommonBundle:EntityFolder1\EntityA.