Skip to content

Commit 3541569

Browse files
committed
Fixes #62
1 parent 41e89f6 commit 3541569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DSL/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function _convertWheresToDSL($wheres, $parentField = false): array
274274
private function _parseCondition($condition, $parentField = null): array
275275
{
276276
$field = key($condition);
277-
if ($parentField) {
277+
if ($parentField && ! in_array($field, ['must', 'should'])) {
278278
if (! str_starts_with($field, $parentField.'.')) {
279279
$field = $parentField.'.'.$field;
280280
}

0 commit comments

Comments
 (0)