@mikro-orm/core 7.1.6-dev.14 → 7.1.6-dev.15
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/MetadataProvider.js +3 -0
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
|
@@ -44,6 +44,9 @@ export class MetadataProvider {
|
|
|
44
44
|
}
|
|
45
45
|
/** Merges cached metadata into the given entity metadata, preserving function expressions. */
|
|
46
46
|
loadFromCache(meta, cache) {
|
|
47
|
+
// `_id` is a process-local runtime counter; a cached value comes from a different discovery
|
|
48
|
+
// run and can collide with ids assigned in the current process, collapsing distinct entities.
|
|
49
|
+
Reflect.deleteProperty(cache, '_id');
|
|
47
50
|
Object.values(cache.properties).forEach(prop => {
|
|
48
51
|
const metaProp = meta.properties[prop.name];
|
|
49
52
|
/* v8 ignore next */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.1.6-dev.
|
|
3
|
+
"version": "7.1.6-dev.15",
|
|
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",
|
package/utils/Utils.js
CHANGED
|
@@ -141,7 +141,7 @@ export function parseJsonSafe(value) {
|
|
|
141
141
|
/** Collection of general-purpose utility methods used throughout the ORM. */
|
|
142
142
|
export class Utils {
|
|
143
143
|
static PK_SEPARATOR = '~~~';
|
|
144
|
-
static #ORM_VERSION = '7.1.6-dev.
|
|
144
|
+
static #ORM_VERSION = '7.1.6-dev.15';
|
|
145
145
|
/**
|
|
146
146
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
147
147
|
*/
|