Skip to content

Commit

Permalink
docs(pinia-orm): MorphToMany example Taggable is missing primaryKey (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDredd authored Nov 26, 2024
1 parent a5a2c93 commit 4a6acbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/1.guide/3.relationships/5.polymorphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ class Tag extends Model {
class Taggable extends Model {
static entity = 'taggables'

static primaryKey = ['tag_id', 'taggable_id', 'taggable_type']

static fields () {
return {
id: this.attr(null),
Expand Down

0 comments on commit 4a6acbf

Please sign in to comment.