Note: This is an ORM limitation reported on the project\'s issue tracker
I\'m facing an issue building a DQL query using the arbitrary join syntax introduced in
try this
SELECT a.id,
b.id
FROM a
INNER JOIN b ON ( a.something = b.something ) and b.type IN ( '1', '2', '3' )
This bug is fixed in Doctrine 2.4
https://github.com/doctrine/doctrine2/issues/2934
Have you tried an inner join instead a left join? The query that you need probably could
SELECT a.id,
b.id
FROM a
INNER JOIN b
ON ( a.something = b.something )
WHERE b.type IN ( '1', '2', '3' )
You can get that changing the function leftJoin by join, or creating the query with the createQuery method for customs queries.