File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,9 @@ public function walkSelectStatement(SelectStatement $AST)
94
94
$ count = $ this ->_getQuery ()->getHint (self ::HINT_PAGINATOR_ID_COUNT );
95
95
96
96
if ($ count > 0 ) {
97
- // in new doctrine 2.2 version theres a different expression
98
- if (property_exists ('Doctrine\ORM\Query\AST\InExpression ' , 'expression ' )) {
99
- $ arithmeticExpression = new ArithmeticExpression ();
100
- $ arithmeticExpression ->simpleArithmeticExpression = new SimpleArithmeticExpression (
101
- array ($ pathExpression )
102
- );
103
- $ expression = new InExpression ($ arithmeticExpression );
104
- } else {
105
- $ expression = new InExpression ($ pathExpression );
106
- }
97
+ $ arithmeticExpression = new ArithmeticExpression ();
98
+ $ arithmeticExpression ->simpleArithmeticExpression = new SimpleArithmeticExpression (array ($ pathExpression ));
99
+ $ expression = new InExpression ($ arithmeticExpression );
107
100
$ ns = self ::PAGINATOR_ID_ALIAS ;
108
101
109
102
for ($ i = 1 ; $ i <= $ count ; $ i ++) {
You can’t perform that action at this time.
0 commit comments