I\'m trying to use a subquery in a IN statement in Doctrine2.
Here\'s what the raw SQL query should look like :
SELECT * FROM license WHERE id IN (
Unfortunately Doctrine does not support limit on nested queries. Even if you use 2 QueryBuilders and setMaxResults() on the inner QueryBuilder, it will simply be ignored.
The only way to do this at this time is to run 2 individual queries.