Here is how I query my database for some words
$query = $qb->select(\'w\')
->from(\'DbEntities\\Entity\\Word\', \'w\')
->where(\'w.indiction
The Doctrine team is not willing to implement this feature.
There are several solutions to your problem, each having its own drawbacks:
WHERE x.id IN(?) to load the associated objects, by passing the array of IDs as a parameter.ORDER BY RAND() exist, I won't detail them here, you'll find some good resources on this website).