@mikro-orm/knex 6.3.14-dev.23 → 6.3.14-dev.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.3.14-dev.23",
3
+ "version": "6.3.14-dev.24",
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.23",
69
+ "@mikro-orm/core": "6.3.14-dev.24",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"
@@ -1069,6 +1069,7 @@ class QueryBuilder {
1069
1069
  break;
1070
1070
  case enums_1.QueryType.UPDATE:
1071
1071
  qb.update(this._data);
1072
+ this.helper.processJoins(qb, this._joins, joinSchema);
1072
1073
  this.helper.updateVersionProperty(qb, this._data);
1073
1074
  break;
1074
1075
  case enums_1.QueryType.DELETE:
@@ -1337,6 +1338,7 @@ class QueryBuilder {
1337
1338
  subSubQuery.__raw = true; // tag it as there is now way to check via `instanceof`
1338
1339
  const method = this.flags.has(core_1.QueryFlag.UPDATE_SUB_QUERY) ? 'update' : 'delete';
1339
1340
  this._cond = {}; // otherwise we would trigger validation error
1341
+ this._joins = {}; // included in the subquery
1340
1342
  this[method](this._data).where({
1341
1343
  [core_1.Utils.getPrimaryKeyHash(meta.primaryKeys)]: { $in: subSubQuery },
1342
1344
  });