Skip to content

Commit

Permalink
Merge pull request #34 from faizananwerali/patch-2
Browse files Browse the repository at this point in the history
getRelationshipTitleColumnName to getRelationshipTitleAttribute for Filament v3.
  • Loading branch information
dmandrade authored Sep 15, 2023
2 parents 354be3f + 5081c48 commit c868a8e
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 @@ -71,7 +71,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->getRelationshipTitleColumnName(), $clause, $data);
$this->applyClause($query, $this->getRelationshipTitleAttribute(), $clause, $data);
});
}

Expand Down

0 comments on commit c868a8e

Please sign in to comment.