1
0
mirror of synced 2025-01-17 22:11:41 +03:00

fixed initialize

This commit is contained in:
zYne 2007-11-25 23:57:10 +00:00
parent 84a97f98ed
commit 18fc6b4aa6

View File

@ -89,8 +89,8 @@ class Doctrine_Pager
*/
protected function initialize()
{
// etrieve the number of itens found
$count = $this->getQuery()->offset(0)->limit(0)->count();
// retrieve the number of items found
$count = $this->getQuery()->count();
$this->setNbResults($count);
$this->adjustOffset();