mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Merge pull request #15037 from strapi/fix/twice-inversedBy
This commit is contained in:
commit
99dfb9a2c8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user