Skip to content

Commit

Permalink
Fixed Bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
592472116 committed Sep 24, 2024
1 parent e615d3d commit 84ae5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public function where(ExpressionBuilder|string|array|Closure $predicates, mixed
} else if ($tmpOp === 'LIKE') {
$where = $expr->like($predicates, $this->quote($value));
} else if ($tmpOp === 'NOT-LIKE') {
$where = $expr->like($predicates, $this->quote($value));
$where = $expr->notLike($predicates, $this->quote($value));
} else if ($tmpOp === 'BETWEEN') {
if (is_array($value)) {
$where = $expr->comparison($predicates, $op, $this->quote($value[0]) . ' AND ' . $this->quote($value[1]));
Expand Down Expand Up @@ -976,7 +976,7 @@ public function bothLike(string|array $field, $value): self
*/
public function notLike(string $field, $value): self
{
$this->queryBuilder->where($this->expr()->notLike($field, $this->quote($value)));
$this->where($field, 'NOT LIKE', $value);
return $this;
}

Expand Down

0 comments on commit 84ae5f3

Please sign in to comment.