diff --git a/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query/WhereInWalker.php b/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query/WhereInWalker.php index 3c0cd779..1de1755f 100644 --- a/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query/WhereInWalker.php +++ b/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query/WhereInWalker.php @@ -94,16 +94,9 @@ public function walkSelectStatement(SelectStatement $AST) $count = $this->_getQuery()->getHint(self::HINT_PAGINATOR_ID_COUNT); if ($count > 0) { - // in new doctrine 2.2 version theres a different expression - if (property_exists('Doctrine\ORM\Query\AST\InExpression', 'expression')) { - $arithmeticExpression = new ArithmeticExpression(); - $arithmeticExpression->simpleArithmeticExpression = new SimpleArithmeticExpression( - array($pathExpression) - ); - $expression = new InExpression($arithmeticExpression); - } else { - $expression = new InExpression($pathExpression); - } + $arithmeticExpression = new ArithmeticExpression(); + $arithmeticExpression->simpleArithmeticExpression = new SimpleArithmeticExpression(array($pathExpression)); + $expression = new InExpression($arithmeticExpression); $ns = self::PAGINATOR_ID_ALIAS; for ($i = 1; $i <= $count; $i++) {