@mikro-orm/knex 6.3.2-dev.6 → 6.3.2-dev.8

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.
@@ -688,8 +688,9 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
688
688
  continue;
689
689
  }
690
690
  const kqb = qb.update({ [coll.property.mappedBy]: null })
691
+ .where({ [coll.property.mappedBy]: pks })
691
692
  .getKnexQuery()
692
- .whereNotIn(cols, insertDiff);
693
+ .andWhere(qb => qb.whereNotIn(cols, insertDiff));
693
694
  await this.rethrow(this.execute(kqb));
694
695
  continue;
695
696
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.3.2-dev.6",
3
+ "version": "6.3.2-dev.8",
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.1"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.3.2-dev.6",
69
+ "@mikro-orm/core": "6.3.2-dev.8",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"