Skip to content

Commit

Permalink
Update HasTags.php (#9)
Browse files Browse the repository at this point in the history
avoid ambigus id when use withAnyTags() and join() in one request
  • Loading branch information
paul45 committed Jan 5, 2024
1 parent ad2a06b commit d143eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function tagsBeforeFind(array $eventData): array
$builder
->orGroupStart()
->whereIn(
$this->primaryKey,
$this->table . '.' . $this->primaryKey,
static fn (BaseBuilder $builder) => $tagScope->getQuery($builder, $tagIds)
)
->groupEnd();
Expand Down

0 comments on commit d143eee

Please sign in to comment.