Merge pull request #15037 from strapi/fix/twice-inversedBy

This commit is contained in:
Marc 2022-12-09 14:33:13 +01:00 committed by GitHub
commit 99dfb9a2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,6 +207,10 @@ module.exports = function createComponentBuilder() {
const attribute = newAttributes[key];
if (isRelation(attribute)) {
if (['manyToMany', 'oneToOne'].includes(attribute.relation)) {
attribute.dominant = true;
}
this.setRelation({
key,
uid,