@mikro-orm/core 6.3.7-dev.3 → 6.3.7-dev.4
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 +4 -4
- package/package.json +2 -2
package/EntityManager.js
CHANGED
|
@@ -1446,25 +1446,25 @@ class EntityManager {
|
|
|
1446
1446
|
* Checks whether this EntityManager is currently operating inside a database transaction.
|
|
1447
1447
|
*/
|
|
1448
1448
|
isInTransaction() {
|
|
1449
|
-
return !!this.transactionContext;
|
|
1449
|
+
return !!this.getContext(false).transactionContext;
|
|
1450
1450
|
}
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Gets the transaction context (driver dependent object used to make sure queries are executed on same connection).
|
|
1453
1453
|
*/
|
|
1454
1454
|
getTransactionContext() {
|
|
1455
|
-
return this.transactionContext;
|
|
1455
|
+
return this.getContext(false).transactionContext;
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Sets the transaction context.
|
|
1459
1459
|
*/
|
|
1460
1460
|
setTransactionContext(ctx) {
|
|
1461
|
-
this.transactionContext = ctx;
|
|
1461
|
+
this.getContext(false).transactionContext = ctx;
|
|
1462
1462
|
}
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Resets the transaction context.
|
|
1465
1465
|
*/
|
|
1466
1466
|
resetTransactionContext() {
|
|
1467
|
-
delete this.transactionContext;
|
|
1467
|
+
delete this.getContext(false).transactionContext;
|
|
1468
1468
|
}
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Gets the `MetadataStorage` (without parameters) or `EntityMetadata` instance when provided with the `entityName` parameter.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.3.7-dev.
|
|
3
|
+
"version": "6.3.7-dev.4",
|
|
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.2.0",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.3.7-dev.
|
|
67
|
+
"mikro-orm": "6.3.7-dev.4",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|