You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapper is not used here when passing fields to QB. In other methods it is used.
Also the problem can be reproduced in V6.
Versions
Dependency
Version
node
16.16.0
typescript
4.7.4
mikro-orm
5.7.12
your-driver
postgresql
The text was updated successfully, but these errors were encountered:
mrmlnc
changed the title
The names of entity properties are not converted to column names when used in the qb.onConflict method.
The names of entity properties are not converted to column names when used in the qb.onConflict method
Jun 25, 2023
Describe the bug
The names of entity properties are not converted to column names when used in the
qb.onConflict
method.At the same time, TS types indicate that I can use entity field names.
Stack trace
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/mrmlnc/mikro-orm-onConflict-mapper-issue
npm ci
npm start
Expected behavior
I expect to be able to use entity field names in this method.
Additional context
It looks like the bug is here:
mikro-orm/packages/knex/src/query/QueryBuilderHelper.ts
Line 404 in 2ab7d7e
The mapper is not used here when passing fields to QB. In other methods it is used.
Also the problem can be reproduced in V6.
Versions
16.16.0
4.7.4
5.7.12
postgresql
The text was updated successfully, but these errors were encountered: