doctrine/doctrine2 — pull request #1092 by birko (2014-07-30 07:57:59+00:00)
Title: Arbitrary Join count walkers solution

Possible solution for Arbitrary Join problem in pagination count
walkers:
https://groups.google.com/forum/#!topic/doctrine-user/rpPYCDNKOU8

Added a condition to test query component against SelectStatement from
clause