@mikro-orm/knex 6.3.14-dev.52 → 6.3.14-dev.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,6 +109,7 @@ class AbstractSqlConnection extends core_1.Connection {
109
109
  queryOrKnex = q.sql;
110
110
  params = q.bindings;
111
111
  }
112
+ queryOrKnex = this.config.get('onQuery')(queryOrKnex, params);
112
113
  const formatted = this.platform.formatQuery(queryOrKnex, params);
113
114
  const sql = this.getSql(queryOrKnex, formatted, loggerContext);
114
115
  return this.executeQuery(sql, async () => {
@@ -570,7 +570,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
570
570
  for (const key of keys) {
571
571
  const prop = meta.properties[key] ?? meta.root.properties[key];
572
572
  prop.fieldNames.forEach((fieldName, fieldNameIdx) => {
573
- if (fields.has(fieldName)) {
573
+ if (fields.has(fieldName) || (prop.ownColumns && !prop.ownColumns.includes(fieldName))) {
574
574
  return;
575
575
  }
576
576
  fields.add(fieldName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.3.14-dev.52",
3
+ "version": "6.3.14-dev.54",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -66,7 +66,7 @@
66
66
  "@mikro-orm/core": "^6.3.13"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.3.14-dev.52",
69
+ "@mikro-orm/core": "6.3.14-dev.54",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"