beberlei/DoctrineExtensions — pull request #53 by sandermarechal (2011-10-11 11:15:22+00:00)
Title: Paginate order by mixed

This change makes the Paginate extension work on queries that use ORDER
BY to order the results in a mixed resultset, such as for example:

SELECT g, COUNT(u.id) AS numUsers FROM GROUP g LEFT JOIN g.users u GROUP BY g.id ORDER BY numUsers DESC