Skip to content

Commit 4a6acbf

Browse files
authored
docs(pinia-orm): MorphToMany example Taggable is missing primaryKey (#1959)
1 parent a5a2c93 commit 4a6acbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/1.guide/3.relationships/5.polymorphic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ class Tag extends Model {
231231
class Taggable extends Model {
232232
static entity = 'taggables'
233233

234+
static primaryKey = ['tag_id', 'taggable_id', 'taggable_type']
235+
234236
static fields () {
235237
return {
236238
id: this.attr(null),

0 commit comments

Comments
 (0)