The symfony2 documentation says that in the EntityManager :: getRepository method, the argument must be a string literal in the format 'SomeBundle: EntityName'
However, this method normally accepts the literal in the standard form of the full class name.
As you know, any php class supports the "magic" method :: class , which returns this most complete name.
It seems to me that it is more correct to use the class and its magic method. So refactoring is easier, and the transition to the class in the IDE can be done.
As a result, the "right" and more convenient?