1
0
mirror of synced 2024-12-14 07:06:04 +03:00

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.
This commit is contained in:
HarmenM 2012-10-12 14:21:48 +03:00 committed by Benjamin Eberlei
parent a0e8ca128c
commit 88d0933a6e

View File

@ -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;