From 88d0933a6e96ae158ecfeab5148aa62e6f5f5f80 Mon Sep 17 00:00:00 2001 From: HarmenM Date: Fri, 12 Oct 2012 14:21:48 +0300 Subject: [PATCH] Update lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php replaced the for-loop which adds the InputParameters for a single InputParameter for use with an array instead of a set of scalars. --- lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php b/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php index f24184c7c..9f41ae6af 100644 --- a/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php +++ b/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php @@ -102,11 +102,8 @@ class WhereInWalker extends TreeWalkerAdapter array($pathExpression) ); $expression = new InExpression($arithmeticExpression); - $ns = self::PAGINATOR_ID_ALIAS; + $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS); - for ($i = 1; $i <= $count; $i++) { - $expression->literals[] = new InputParameter(":{$ns}_$i"); - } } else { $expression = new NullComparisonExpression($pathExpression); $expression->not = false;