tags:

views:

54

answers:

2

I cant find Doctrine_Pager in Doctrine2 and really need a way to page my query results. Is there a way to use some alternative pager (Pear, Zend)? Please post some example code as well if solution is available. Google didnt helped me, so hope folks will :)

A: 

I wrote this extension for Doctrine2 that contains a powerful pager:

http://github.com/beberlei/DoctrineExtensions

beberlei
The code looks really nice, cant wait to try it out, thanks
A: 

Just as a note though, Query#setMaxResults / Query#setFirstResult covers most of the basic needs for paging.