@mikro-orm/core 7.0.0-dev.124 → 7.0.0-dev.125
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/metadata/MetadataDiscovery.js +3 -1
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
|
@@ -859,10 +859,12 @@ export class MetadataDiscovery {
|
|
|
859
859
|
path = [embeddedProp.fieldNames[0]];
|
|
860
860
|
}
|
|
861
861
|
this.initFieldName(prop, true);
|
|
862
|
+
this.initRelation(prop);
|
|
862
863
|
path.push(prop.fieldNames[0]);
|
|
863
864
|
meta.properties[name].fieldNames = prop.fieldNames;
|
|
864
865
|
meta.properties[name].embeddedPath = path;
|
|
865
|
-
const
|
|
866
|
+
const targetProp = prop.targetMeta?.getPrimaryProp() ?? prop;
|
|
867
|
+
const fieldName = raw(this.platform.getSearchJsonPropertySQL(path.join('->'), targetProp.runtimeType ?? targetProp.type, true));
|
|
866
868
|
meta.properties[name].fieldNameRaw = fieldName.sql; // for querying in SQL drivers
|
|
867
869
|
meta.properties[name].persist = false; // only virtual as we store the whole object
|
|
868
870
|
meta.properties[name].userDefined = false; // mark this as a generated/internal property, so we can distinguish from user-defined non-persist properties
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.125",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
package/utils/Utils.js
CHANGED
|
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
|
|
|
123
123
|
}
|
|
124
124
|
export class Utils {
|
|
125
125
|
static PK_SEPARATOR = '~~~';
|
|
126
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.125';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|