Jira issue originally created by user majkl578:
When I create an alias for entity namespace:
'Entities' => 'A\B\Entities',
and then use it in association mapping:
Then the proxy for the target entity is not generated correctly. It generates proxy class name "Entities:Foo\BarProxy", instead of "ABEntitiesFooBarProxy". It obviously causes Parse error in PHP.
Comment created by @beberlei:
Aliases in targetEntity are not supported and can't be architecture-wise. Aliases only work in DQL Queries or for EntityManager::find() ::getRepository().
Issue was closed with resolution "Can't Fix"
Comment created by nick4fake:
Why this bug is set to "Won't fix"? It would be great feature.