I have problems to create a Doctrine Query with LIKE Expression:
QUERY:
$dql = "SELECT u FROM Users u JOIN u.group g WHERE g.name LIKE lower('ADMIN')";
$query = $em->createQuery($dql);
$result = $query->getResult();
ERROR:
QueryException: [Syntax Error] line 0, col 147: Error: Expected Doctrine\ORM\Query\Lexer::T_STRING, got 'lower'
LOWER was just an example, I need to use other functions in LIKE EXPRESSION, for example, unnacent...
How can I change Like Expression to support function on both sides?
Example: LOWER(unaccent(u.login)) LIKE LOWER(unaccent('ADMIN'))