Skip to content

Commit 3debc86

Browse files
authored
Get the tag model table name when syncing tags (spatie#351)
1 parent 755e464 commit 3debc86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HasTags.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected function syncTagIds($ids, string | null $type = null, $detaching = tru
233233
'=',
234234
$tagModel->getTable() . '.' . $tagModel->getKeyName()
235235
)
236-
->where('tags.type', $type);
236+
->where($tagModel->getTable() . '.type', $type);
237237
})
238238
->pluck('tag_id')
239239
->all();

0 commit comments

Comments
 (0)