Object namespaces are a shortcut for object aliases when pointing to other classes. A good example of an object namespace is inside DQL queries.
When you define a namespace, for example: → addEntityNamespace ('app', 'Application \ Entity'); Then you can easily access them. In the DQL sample, write instead:
SELECT u FROM Application\Entity\User u
You can do it:
SELECT u FROM app:User u
Hope this helps. =)
Greetings
source share