Fixes GH-44 - Out of bounds query returns all results.
Fixes GH-44 - Out of bounds query returns all results.

zilionis/DoctrineExtensions,nimasdj/DoctrineExtensions,pnvasanth/DoctrineExtensions,n1889/DoctrineExtensions,tarjei/DoctrineExtensions,pelex/DoctrineExtensions,enumag/DoctrineExtensions