@mikro-orm/knex 6.1.8-dev.6 → 6.1.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.
@@ -345,7 +345,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
345
345
  const addParams = (prop, row) => {
346
346
  let value = row[prop.name];
347
347
  if (prop.kind === core_1.ReferenceKind.EMBEDDED && prop.object) {
348
- if (prop.array) {
348
+ if (prop.array && value) {
349
349
  for (let i = 0; i < value.length; i++) {
350
350
  const item = value[i];
351
351
  value[i] = this.mapDataToFieldNames(item, false, prop.embeddedProps, options.convertCustomTypes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.1.8-dev.6",
3
+ "version": "6.1.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",
@@ -63,9 +63,9 @@
63
63
  "sqlstring": "2.3.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@mikro-orm/core": "^6.1.7"
66
+ "@mikro-orm/core": "^6.1.8"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.8-dev.6"
69
+ "@mikro-orm/core": "^6.0.0"
70
70
  }
71
71
  }