@mikro-orm/knex 6.2.5-dev.3 → 6.2.5-dev.5

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.
@@ -357,6 +357,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
357
357
  let value = row[prop.name];
358
358
  if (prop.kind === core_1.ReferenceKind.EMBEDDED && prop.object) {
359
359
  if (prop.array && value) {
360
+ value = this.platform.cloneEmbeddable(value);
360
361
  for (let i = 0; i < value.length; i++) {
361
362
  const item = value[i];
362
363
  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.2.5-dev.3",
3
+ "version": "6.2.5-dev.5",
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": "^6.2.4"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.2.5-dev.3"
69
+ "@mikro-orm/core": "6.2.5-dev.5"
70
70
  }
71
71
  }