@mikro-orm/knex 7.0.0-dev.53 → 7.0.0-dev.55

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.
@@ -78,7 +78,6 @@ export declare abstract class AbstractSqlDriver<Connection extends AbstractSqlCo
78
78
  protected buildJoinedPropsOrderBy<T extends object>(qb: QueryBuilder<T, any, any, any>, meta: EntityMetadata<T>, populate: PopulateOptions<T>[], options?: Pick<FindOptions<any>, 'strategy' | 'orderBy' | 'populateOrderBy'>, parentPath?: string): QueryOrderMap<T>[];
79
79
  protected normalizeFields<T extends object>(fields: Field<T>[], prefix?: string): string[];
80
80
  protected processField<T extends object>(meta: EntityMetadata<T>, prop: EntityProperty<T> | undefined, field: string, ret: Field<T>[]): void;
81
- protected isPopulated<T extends object>(meta: EntityMetadata<T>, prop: EntityProperty<T>, hint: PopulateOptions<T>, name?: string): boolean;
82
81
  protected buildFields<T extends object>(meta: EntityMetadata<T>, populate: PopulateOptions<T>[], joinedProps: PopulateOptions<T>[], qb: QueryBuilder<T, any, any, any>, alias: string, options: Pick<FindOptions<T, any, any, any>, 'strategy' | 'fields' | 'exclude'>): Field<T>[];
83
82
  }
84
83
  interface FieldsForJoinedLoadOptions<T extends object> {
@@ -1313,15 +1313,6 @@ export class AbstractSqlDriver extends DatabaseDriver {
1313
1313
  }
1314
1314
  ret.push(prop.name);
1315
1315
  }
1316
- isPopulated(meta, prop, hint, name) {
1317
- if (hint.field === prop.name || hint.field === name || hint.all) {
1318
- return true;
1319
- }
1320
- if (prop.embedded && hint.children && meta.properties[prop.embedded[0]].name === hint.field) {
1321
- return hint.children.some(c => this.isPopulated(meta, prop, c, prop.embedded[1]));
1322
- }
1323
- return false;
1324
- }
1325
1316
  buildFields(meta, populate, joinedProps, qb, alias, options) {
1326
1317
  const lazyProps = meta.props.filter(prop => prop.lazy && !populate.some(p => this.isPopulated(meta, prop, p)));
1327
1318
  const hasLazyFormulas = meta.props.some(p => p.lazy && p.formula);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "7.0.0-dev.53",
3
+ "version": "7.0.0-dev.55",
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
  "type": "module",
6
6
  "exports": {
@@ -54,9 +54,9 @@
54
54
  "sqlstring": "2.3.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@mikro-orm/core": "^6.6.0"
57
+ "@mikro-orm/core": "^6.6.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.0.0-dev.53"
60
+ "@mikro-orm/core": "7.0.0-dev.55"
61
61
  }
62
62
  }