@mikro-orm/sql 7.2.6-dev.3 → 7.2.6-dev.4
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/AbstractSqlDriver.js +4 -4
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -825,11 +825,11 @@ export class AbstractSqlDriver extends DatabaseDriver {
|
|
|
825
825
|
value = this.platform.cloneEmbeddable(value);
|
|
826
826
|
for (let i = 0; i < value.length; i++) {
|
|
827
827
|
const item = value[i];
|
|
828
|
-
value[i] = this.mapDataToFieldNames(item, false, prop
|
|
828
|
+
value[i] = this.mapDataToFieldNames(item, false, this.variantProps(prop, item), options.convertCustomTypes);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
else {
|
|
832
|
-
value = this.mapDataToFieldNames(value, false, prop
|
|
832
|
+
value = this.mapDataToFieldNames(value, false, this.variantProps(prop, value), options.convertCustomTypes);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
if (typeof value === 'undefined' && this.platform.usesDefaultKeyword()) {
|
|
@@ -1095,11 +1095,11 @@ export class AbstractSqlDriver extends DatabaseDriver {
|
|
|
1095
1095
|
if (prop.array && value) {
|
|
1096
1096
|
for (let i = 0; i < value.length; i++) {
|
|
1097
1097
|
const item = value[i];
|
|
1098
|
-
value[i] = this.mapDataToFieldNames(item, false, prop
|
|
1098
|
+
value[i] = this.mapDataToFieldNames(item, false, this.variantProps(prop, item), options.convertCustomTypes);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
else {
|
|
1102
|
-
value = this.mapDataToFieldNames(value, false, prop
|
|
1102
|
+
value = this.mapDataToFieldNames(value, false, this.variantProps(prop, value), options.convertCustomTypes);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
params.push(value ?? null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sql",
|
|
3
|
-
"version": "7.2.6-dev.
|
|
3
|
+
"version": "7.2.6-dev.4",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.2.5"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.2.6-dev.
|
|
56
|
+
"@mikro-orm/core": "7.2.6-dev.4"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|