@mikro-orm/core 7.0.0-dev.280 → 7.0.0-dev.282
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.
|
@@ -1442,7 +1442,7 @@ export class MetadataDiscovery {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
if (this.platform.usesEnumCheckConstraints() && !meta.embeddable) {
|
|
1444
1444
|
for (const prop of meta.props) {
|
|
1445
|
-
if (prop.enum && !prop.nativeEnumName && prop.items?.every(item => typeof item === 'string')) {
|
|
1445
|
+
if (prop.enum && prop.persist !== false && !prop.nativeEnumName && prop.items?.every(item => typeof item === 'string')) {
|
|
1446
1446
|
this.initFieldName(prop);
|
|
1447
1447
|
meta.checks.push({
|
|
1448
1448
|
name: this.namingStrategy.indexName(meta.tableName, prop.fieldNames, 'check'),
|
|
@@ -9,7 +9,7 @@ function getGlobalStorage(namespace) {
|
|
|
9
9
|
return globalThis[key];
|
|
10
10
|
}
|
|
11
11
|
export class MetadataStorage {
|
|
12
|
-
static PATH_SYMBOL = Symbol('MetadataStorage.PATH_SYMBOL');
|
|
12
|
+
static PATH_SYMBOL = Symbol.for('@mikro-orm/core/MetadataStorage.PATH_SYMBOL');
|
|
13
13
|
static metadata = getGlobalStorage('metadata');
|
|
14
14
|
metadata = new Map();
|
|
15
15
|
idMap;
|
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.282",
|
|
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.282';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|