Zend_Paginator / Doctrine 2

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2011-03-02T15:23:49Z Indexed on 2011/03/02 15:24 UTC
Read the original article Hit count: 171

Filed under:
|

I'm using Doctrine 2 with my Zend Framework application and a typical query result could yield a million (or more) search results.

I want to use Zend_Paginator in line with this result set. However, I don't want to return all the results as an array and use the Array adapter as this would be inefficient, instead I would like to supply the paginator the total amount of rows then and array of results based on limit/offset amounts.

Is this doable using the Array adapter or would I need to create my own pagination adapter?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about doctrine2