You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes :p and so it's not symmetrical with PHP coding...
it's unesthetic and when you do code refactoring it's harder than just managing your use "namespace";
but i've put priority to minor ;p
Jira issue originally created by user quazardous:
I find not always portable-friendly the use of full class path in DQL.
$query = $em->createQuery('SELECT u FROM \MyProject\Model\User u WHERE u.age > 20');
could be :
$query = $em->createQuery('USE \MyProject\Model SELECT u FROM User u WHERE u.age > 20');
or :
$query = $em->use('\MyProject\Model')->createQuery('SELECT u FROM User u WHERE u.age > 20');
And with a default namespace attached to the entity manager :
$query = $em->use()->createQuery('SELECT u FROM User u WHERE u.age > 20');
The text was updated successfully, but these errors were encountered: