Skip to content

Commit

Permalink
Update QueryObject.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Aug 29, 2022
1 parent c75254a commit b748af6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ final public function byId($id): static

/**
* @param int|int[]|IEntity|IEntity[] $id
* @return static
*/
final public function orById($id): static
{
Expand All @@ -153,11 +152,20 @@ final public function orById($id): static
return $this;
}

final public function disableFilter(array|string $filter)
final public function disableFilter(array|string $filter): static
{
foreach ((array) $filter as $_filter) {
unset($this->filter[$_filter]);
}

return $this;
}

final public function disableDefaultOrder(): static
{
$this->order = null;

return $this;
}

/**
Expand Down

0 comments on commit b748af6

Please sign in to comment.