I'm on a symfony2 project, and I've got an issue with the following query :
SELECT count(a)
FROM CoreBundle:Agency a
WHERE (
SELECT count(c.id)
FROM CoreBundle:Agency a1, CoreBundle:Client c
WHERE a1.id = c.agency AND a1.id = a.id
) LIKE "%1%"
When I want the result, Doctrine2 returns this error :
Error: Expected =, <, <=, <>, >, >=, !=, got 'LIKE'
The same query (adapted in SQL instead of DQL) works fine.
I tried to find a solution but nothing came...
Thanks for your help !