This is err... more like a design problem that shouldn't be documented here.

You probably want to suggest it for the doctrine ORM docs directly at http://docs.doctrine-project.org/en/latest/tutorials/pagination.html