Hi i have this query writen in phpmyadmin and it works gr8.
SELECT u.* FROM users AS u WHERE
u.id = 14469 OR
u.id = 685
ORDER BY u.id, field(u.id, 14469, 685)
But i need to write it in symfony2. How it will looks like? Because this is throwing me an error:
$query=$this->_em->createQuery("SELECT u FROM UserBundle:User u WHERE
u.id = 14469 OR
u.id = 685
ORDER BY u.id, field(u.id, 14469, 685)
");
An exception has been thrown during the rendering of a template ("[Syntax Error] line 0, col 122: Error: Expected end of string, got '('")
Or its not allowed and i have to install and use some doctrine extension?