@mikro-orm/knex 6.0.0-dev.291 → 6.0.0-dev.292

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.
@@ -981,6 +981,9 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
981
981
  const orderHint = populateOrderBy[i];
982
982
  for (const propName of core_1.Utils.keys(orderHint)) {
983
983
  const prop = meta.properties[propName];
984
+ if (!prop) {
985
+ throw new Error(`Trying to order by not existing property ${meta.className}.${propName}`);
986
+ }
984
987
  const meta2 = this.metadata.find(prop.type);
985
988
  const childOrder = orderHint[prop.name];
986
989
  let path = `${parentPath}.${propName}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.0.0-dev.291",
3
+ "version": "6.0.0-dev.292",
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,6 +66,6 @@
66
66
  "@mikro-orm/core": "^5.0.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.0.0-dev.291"
69
+ "@mikro-orm/core": "6.0.0-dev.292"
70
70
  }
71
71
  }