@mikro-orm/core 7.0.0-dev.171 → 7.0.0-dev.173
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.
|
@@ -11,7 +11,7 @@ type TypeDef<Target> = {
|
|
|
11
11
|
type EmbeddedTypeDef<Target> = {
|
|
12
12
|
type: TypeType;
|
|
13
13
|
} | {
|
|
14
|
-
entity: () => EntityName<Target> | EntityName
|
|
14
|
+
entity: () => EntityName<Target> | EntityName[];
|
|
15
15
|
};
|
|
16
16
|
export type EntitySchemaProperty<Target, Owner> = ({
|
|
17
17
|
kind: ReferenceKind.MANY_TO_ONE | 'm:1';
|
|
@@ -952,7 +952,6 @@ export class MetadataDiscovery {
|
|
|
952
952
|
if (meta.root === meta) {
|
|
953
953
|
return;
|
|
954
954
|
}
|
|
955
|
-
let i = 1;
|
|
956
955
|
Object.values(meta.properties).forEach(prop => {
|
|
957
956
|
const newProp = { ...prop };
|
|
958
957
|
const rootProp = meta.root.properties[prop.name];
|
|
@@ -960,7 +959,7 @@ export class MetadataDiscovery {
|
|
|
960
959
|
const name = newProp.name;
|
|
961
960
|
this.initFieldName(newProp, newProp.object);
|
|
962
961
|
newProp.renamedFrom = name;
|
|
963
|
-
newProp.name = name
|
|
962
|
+
newProp.name = `${name}_${meta._id}`;
|
|
964
963
|
meta.root.addProperty(newProp);
|
|
965
964
|
this.initFieldName(prop, prop.object);
|
|
966
965
|
// Track all field variants and map discriminator values to field names
|
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.173",
|
|
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.173';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|