Skip to content

Commit

Permalink
Merge pull request #81 from gearbox-solutions/change-wherenot-chaining
Browse files Browse the repository at this point in the history
change logic for chaining whereNot to better match eloquent behavior
  • Loading branch information
Smef authored Oct 8, 2024
2 parents 97b91cf + e1446e6 commit 799ebd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Query/FMBaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
}

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

Expand Down

0 comments on commit 799ebd4

Please sign in to comment.