Working with Symfony 2 and Doctrine, I\'m searching for a way to select every rows having the max value in a specific column.
Right now, I\'m doing it in two queries
For me when i trying to make a subquery i make:
->andWhere($qb->expr()->eq('affaire', $qb2->getDql()));