1
0
mirror of synced 2025-02-02 13:31:45 +03:00

DO NOT OVERRIDE CUSTOM TREE WALKERS IN getIterator()

This commit is contained in:
Maks Feltrin 2013-08-29 08:36:39 +02:00 committed by Benjamin Eberlei
parent 159ca79b81
commit 45d7d5234f

View File

@ -178,7 +178,7 @@ class Paginator implements \Countable, \IteratorAggregate
return new \ArrayIterator(array()); return new \ArrayIterator(array());
} }
$whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, array('Doctrine\ORM\Tools\Pagination\WhereInWalker')); $this->appendTreeWalker($whereInQuery, 'Doctrine\ORM\Tools\Pagination\WhereInWalker');
$whereInQuery->setHint(WhereInWalker::HINT_PAGINATOR_ID_COUNT, count($ids)); $whereInQuery->setHint(WhereInWalker::HINT_PAGINATOR_ID_COUNT, count($ids));
$whereInQuery->setFirstResult(null)->setMaxResults(null); $whereInQuery->setFirstResult(null)->setMaxResults(null);
$whereInQuery->setParameter(WhereInWalker::PAGINATOR_ID_ALIAS, $ids); $whereInQuery->setParameter(WhereInWalker::PAGINATOR_ID_ALIAS, $ids);