@mikro-orm/knex 6.3.14-dev.39 → 6.3.14-dev.40

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.39",
3
+ "version": "6.3.14-dev.40",
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.39",
69
+ "@mikro-orm/core": "6.3.14-dev.40",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"
@@ -691,7 +691,6 @@ class QueryBuilder {
691
691
  const [propName] = hint.field.split(':', 2);
692
692
  const value = core_1.Reference.unwrapReference(entity[propName]);
693
693
  if (core_1.Utils.isEntity(value)) {
694
- (0, core_1.helper)(value).populated();
695
694
  propagatePopulateHint(value, hint.children ?? []);
696
695
  }
697
696
  else if (core_1.Utils.isCollection(value)) {
@@ -1051,7 +1050,7 @@ class QueryBuilder {
1051
1050
  case enums_1.QueryType.SELECT:
1052
1051
  qb.select(this.prepareFields(this._fields));
1053
1052
  if (this._distinctOn) {
1054
- qb.distinctOn(this._distinctOn);
1053
+ qb.distinctOn(this.prepareFields(this._distinctOn));
1055
1054
  }
1056
1055
  else if (this.flags.has(core_1.QueryFlag.DISTINCT)) {
1057
1056
  qb.distinct();