From c521ef69e0b1c50bb79db2a6f009f0638407dbf7 Mon Sep 17 00:00:00 2001 From: Gregor Becker Date: Tue, 26 Nov 2024 17:32:14 +0100 Subject: [PATCH] docs(pinia-orm): MorphToMany example Taggable is missing primaryKey --- docs/content/1.guide/3.relationships/5.polymorphic.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/1.guide/3.relationships/5.polymorphic.md b/docs/content/1.guide/3.relationships/5.polymorphic.md index aaf37f35b..e2f7caf9e 100644 --- a/docs/content/1.guide/3.relationships/5.polymorphic.md +++ b/docs/content/1.guide/3.relationships/5.polymorphic.md @@ -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),