Делаю
$q = $em->createQuery('select u from AppUrlShortenerBundle:Urls u where u.id > 2');
Всё работает.
Делаю:
$q = $em->createQuery('select u from AppUrlShortenerBundle:Urls u where u.id > :abc')->setParametr('abc', 2);
Возвращает:
FatalErrorException: Error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Debug\ExceptionHandler::handle() must be an instance of Exception? instance of Error given in /var/www/html/Symfony/vendors/symfony/symfony/src/Symfony/Component/Debug/ExceptionHandler.php line 71
:((