diff --git a/src/PhalconRest/QueryParsers/PhqlQueryParser.php b/src/PhalconRest/QueryParsers/PhqlQueryParser.php index 86ed926..5313a19 100644 --- a/src/PhalconRest/QueryParsers/PhqlQueryParser.php +++ b/src/PhalconRest/QueryParsers/PhqlQueryParser.php @@ -78,7 +78,7 @@ public function applyQuery(\Phalcon\Mvc\Model\Query\Builder $builder, Query $que } } - $allConditions = $orConditions + $andConditions; + $allConditions = array_merge($orConditions, $andConditions); /** @var Condition $condition */ foreach ($allConditions as $conditionIndex => $condition) {