Skip to content

Commit

Permalink
Unify conjugation order.
Browse files Browse the repository at this point in the history
Currently `and*()` methods append conditions, while `or*()` methods
prepend them. While this doesn't affect the logic of the statement,
it might be confusing, and it contradicts the description.
  • Loading branch information
ndm2 committed Apr 27, 2017
1 parent 0450ecc commit 751e460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Query.php
Expand Up @@ -1986,7 +1986,7 @@ protected function _conjugate($part, $append, $conjunction, $types)
} else {
$expression = $this->newExpr()
->setConjunction($conjunction)
->add([$append, $expression], $types);
->add([$expression, $append], $types);
}

$this->_parts[$part] = $expression;
Expand Down

0 comments on commit 751e460

Please sign in to comment.