Skip to content

Commit 799ebd4

Browse files
authored
Merge pull request #81 from gearbox-solutions/change-wherenot-chaining
change logic for chaining whereNot to better match eloquent behavior
2 parents 97b91cf + e1446e6 commit 799ebd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Query/FMBaseBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
176176
}
177177

178178
// This is an "orWhere" type query, so add a find request and then work from there
179-
if ($boolean === 'or' || ($shouldBeOmit && ! $this->isCurrentFindAnOmit())) {
179+
if ($boolean === 'or' || ($shouldBeOmit !== $this->isCurrentFindAnOmit())) {
180180
$this->addFindRequest();
181181
}
182182

0 commit comments

Comments
 (0)