@mikro-orm/entity-generator 6.4.3-dev.15 → 6.4.3-dev.17
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/EntityGenerator.js +3 -0
- package/package.json +3 -3
package/EntityGenerator.js
CHANGED
|
@@ -222,6 +222,9 @@ class EntityGenerator {
|
|
|
222
222
|
for (const meta of filteredMetadata) {
|
|
223
223
|
for (const prop of meta.relations) {
|
|
224
224
|
const targetMeta = metadata.find(m => m.className === prop.type);
|
|
225
|
+
if (!targetMeta) {
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
225
228
|
const newProp = {
|
|
226
229
|
type: meta.className,
|
|
227
230
|
joinColumns: prop.fieldNames,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/entity-generator",
|
|
3
|
-
"version": "6.4.3-dev.
|
|
3
|
+
"version": "6.4.3-dev.17",
|
|
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",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "6.4.3-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.4.3-dev.17",
|
|
62
62
|
"fs-extra": "11.2.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@mikro-orm/core": "^6.4.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@mikro-orm/core": "6.4.3-dev.
|
|
68
|
+
"@mikro-orm/core": "6.4.3-dev.17"
|
|
69
69
|
}
|
|
70
70
|
}
|