mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 09:25:46 +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];
|
const attribute = newAttributes[key];
|
||||||
|
|
||||||
if (isRelation(attribute)) {
|
if (isRelation(attribute)) {
|
||||||
|
if (['manyToMany', 'oneToOne'].includes(attribute.relation)) {
|
||||||
|
attribute.dominant = true;
|
||||||
|
}
|
||||||
|
|
||||||
this.setRelation({
|
this.setRelation({
|
||||||
key,
|
key,
|
||||||
uid,
|
uid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user