From 1f035acf13d5a44769d5f3c767ac04d882ed25f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Tue, 17 May 2022 23:13:09 +0400 Subject: [PATCH] Add relation between paroles & commentaires --- src/api/parole/content-types/parole/schema.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/parole/content-types/parole/schema.json b/src/api/parole/content-types/parole/schema.json index e03f335..e3f14dd 100644 --- a/src/api/parole/content-types/parole/schema.json +++ b/src/api/parole/content-types/parole/schema.json @@ -77,6 +77,11 @@ "type": "component", "repeatable": true, "component": "store.album" + }, + "commentaires": { + "type": "relation", + "relation": "oneToMany", + "target": "api::commentaire.commentaire" } } }