@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | if (count($this->getConditions()) !== 0) { |
112 | 112 | foreach ($this->getConditions() as $condition) { |
113 | 113 | $conditionKey = 'NNXGridCondition_'.$i; |
114 | - $query->andWhere($condition->getKey() . ' ' . $condition->getCriteria() . ' :'.$conditionKey); |
|
114 | + $query->andWhere($condition->getKey().' '.$condition->getCriteria().' :'.$conditionKey); |
|
115 | 115 | $query->setParameter($conditionKey, $condition->getValue()); |
116 | 116 | $i++; |
117 | 117 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | $query = clone $query; |
140 | 140 | $this->setCountQuery($query |
141 | - ->select('COUNT(DISTINCT ' . $this->getRootAlias() . '.id) AS total_results') |
|
141 | + ->select('COUNT(DISTINCT '.$this->getRootAlias().'.id) AS total_results') |
|
142 | 142 | ->resetQueryParts(['groupBy', 'orderBy']) |
143 | 143 | ->setMaxResults(1) |
144 | 144 | ); |