Details
Description
We should add pagination tools to the Doctrine\ORM\Tools\Pagination namespace. There are already 3 libraries out there that share the same code-base:
- https://github.com/KnpLabs/knp-components/tree/master/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query
- https://github.com/beberlei/DoctrineExtensions
- https://github.com/whiteoctober/Pagerfanta
We should merge the currently best one of this into the code soon, as the cost of maintaining them is very high and their code is pretty stable by now.
Implemented, using the KNP Code, the PAgerfanta tests and putting a set of functional tests on top.
Merged back into 2.2 aswell as the code can be considered stable and does not affect any other area of the code.