Actually, I think the best way is to require using the class name. Entity shortcuts are specific to Doctrine.

thus, if you have several Doctrine managers configured in your project (for instance the ORM and the MongoDB ODM), ``AcmeDemoBundle:User`` could correspond to several classes (the Entity and the Document one). And this could also happen when using multiple ORM entity managers (but reusing the same alias in this case with matching classes for both might break other things as well)