Kees Schepers You use the expression wrong. ALL/ANY/SOME expression needs another expression to compare against. Something like:
SELECT * FROM foo WHERE ALL(SELECT bar.id FROM bar WHERE bar.id > 100)
is not valid SQL.
What you want is something like:
SELECT * FROM foo WHERE foo.id > ALL(SELECT bar.id FROM bar WHERE bar.id > 100)
I hope you get what I mean, I don't know exactly what you supposed your query to do but I hope you get the point. This is not a Doctrine bug.
See here for an example with the query builder: https://github.com/doctrine/doctrine2/blob/a83f5df47c463cd64a2525274c97812e04a8eca5/tests/Doctrine/Tests/ORM/QueryBuilderTest.php#L716-L729