Put inversedBy only once for manyToMany and oneToOne relations when creating a content-type

This commit is contained in:
Pierre Noël 2022-12-20 18:10:58 +01:00
parent 76bdf07031
commit 4dc1d47e4c

View File

@ -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,