mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Put inversedBy only once for manyToMany and oneToOne relations when creating a content-type
This commit is contained in:
parent
76bdf07031
commit
4dc1d47e4c
@ -117,6 +117,10 @@ module.exports = function createComponentBuilder() {
|
||||
const attribute = infos.attributes[key];
|
||||
|
||||
if (isRelation(attribute)) {
|
||||
if (['manyToMany', 'oneToOne'].includes(attribute.relation)) {
|
||||
attribute.dominant = true;
|
||||
}
|
||||
|
||||
this.setRelation({
|
||||
key,
|
||||
uid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user