-
I have a dbEntity with a ManyToMany relationship defined :
And this is UserGroupDbEntity: @entity({ tableName: 'user_groups' }) @manytomany(() => ProjectDbEntity, (project) => project.userGroups, { owner: true }) When trying to insert a new project in the database with upsert, mikroorm adds an erroneous returning clause for userGroups in the sql it executes eg.
Of course this fails with an error because "column "userGroups" does not exist" I've made sure that my db schema is up to date using mikro-orm migration:create What could be causing such an issue ? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The issue seems to be a regression in the latest version closing this issue |
Beta Was this translation helpful? Give feedback.
e342449