guillaumeoriol/serquant — Issue #12: add the namespace alias features to EntityManager and Validator factories
Author: guillaumeoriol
Created: 2011-10-28 16:17:04+00:00
State: open
Labels: enhancement

I was not able to find the reason why:

use Doctrine\ORM\Mapping AS ORM;

/**
* @ORM\Entity
*/
class Author
{ ... }

produced the following error:

> Class \Domain\Entity\Author is not a valid entity or mapped super class.

But I know another method to load annotation classes. It is through **aliases**. Hence, I must add the namespace alias feature to the EntityManager and Validator DIC factories.