From 45d7d5234f4880af785aed927d14ac14dd64bbb7 Mon Sep 17 00:00:00 2001 From: Maks Feltrin Date: Thu, 29 Aug 2013 08:36:39 +0200 Subject: [PATCH] DO NOT OVERRIDE CUSTOM TREE WALKERS IN getIterator() --- lib/Doctrine/ORM/Tools/Pagination/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php index b9e8c5298..ecace32f6 100755 --- a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php +++ b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php @@ -178,7 +178,7 @@ class Paginator implements \Countable, \IteratorAggregate 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->setFirstResult(null)->setMaxResults(null); $whereInQuery->setParameter(WhereInWalker::PAGINATOR_ID_ALIAS, $ids);