@mikro-orm/core 6.4.16-dev.14 → 6.4.16-dev.16
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/EntityManager.js +1 -1
- package/errors.d.ts +1 -0
- package/errors.js +3 -0
- package/package.json +2 -2
package/EntityManager.js
CHANGED
|
@@ -488,7 +488,7 @@ class EntityManager {
|
|
|
488
488
|
flushMode: enums_1.FlushMode.COMMIT,
|
|
489
489
|
});
|
|
490
490
|
if (reloaded) {
|
|
491
|
-
this.config.getHydrator(this.metadata).hydrate(entity, (0, entity_1.helper)(entity).__meta, (0, entity_1.helper)(reloaded).toPOJO(), this.getEntityFactory(), 'full');
|
|
491
|
+
this.config.getHydrator(this.metadata).hydrate(entity, (0, entity_1.helper)(entity).__meta, (0, entity_1.helper)(reloaded).toPOJO(), this.getEntityFactory(), 'full', false, true);
|
|
492
492
|
}
|
|
493
493
|
else {
|
|
494
494
|
this.getUnitOfWork().unsetIdentity(entity);
|
package/errors.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare class ValidationError<T extends AnyEntity = AnyEntity> extends Er
|
|
|
24
24
|
static cannotCommit(): ValidationError;
|
|
25
25
|
static cannotUseGlobalContext(): ValidationError;
|
|
26
26
|
static cannotUseOperatorsInsideEmbeddables(className: string, propName: string, payload: unknown): ValidationError;
|
|
27
|
+
static cannotUseGroupOperatorsInsideScalars(className: string, propName: string, payload: unknown): ValidationError;
|
|
27
28
|
static invalidEmbeddableQuery(className: string, propName: string, embeddableType: string): ValidationError;
|
|
28
29
|
}
|
|
29
30
|
export declare class CursorError<T extends AnyEntity = AnyEntity> extends ValidationError<T> {
|
package/errors.js
CHANGED
|
@@ -98,6 +98,9 @@ class ValidationError extends Error {
|
|
|
98
98
|
static cannotUseOperatorsInsideEmbeddables(className, propName, payload) {
|
|
99
99
|
return new ValidationError(`Using operators inside embeddables is not allowed, move the operator above. (property: ${className}.${propName}, payload: ${(0, node_util_1.inspect)(payload)})`);
|
|
100
100
|
}
|
|
101
|
+
static cannotUseGroupOperatorsInsideScalars(className, propName, payload) {
|
|
102
|
+
return new ValidationError(`Using group operators ($and/$or) inside scalar properties is not allowed, move the operator above. (property: ${className}.${propName}, payload: ${(0, node_util_1.inspect)(payload)})`);
|
|
103
|
+
}
|
|
101
104
|
static invalidEmbeddableQuery(className, propName, embeddableType) {
|
|
102
105
|
return new ValidationError(`Invalid query for entity '${className}', property '${propName}' does not exist in embeddable '${embeddableType}'`);
|
|
103
106
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.4.16-dev.
|
|
3
|
+
"version": "6.4.16-dev.16",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.3.0",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.4.16-dev.
|
|
67
|
+
"mikro-orm": "6.4.16-dev.16",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|