Skip to content

Commit

Permalink
fix: in relationship filter use title column
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandrade committed Aug 29, 2022
1 parent e5fb89d commit 553da82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasClauses.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function apply(Builder $query, array $data = []): Builder

if ($this->queriesRelationships()) {
return $query->whereHas($this->getRelationshipName(), function ($query) use ($clause, $data) {
$this->applyClause($query, $this->getColumn(), $clause, $data);
$this->applyClause($query, $this->getRelationshipTitleColumnName(), $clause, $data);
});
}

Expand Down

0 comments on commit 553da82

Please sign in to comment.