@mikro-orm/core 7.1.5-dev.25 → 7.1.5-dev.26
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/MetadataDiscovery.js +4 -1
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
|
@@ -1394,7 +1394,10 @@ export class MetadataDiscovery {
|
|
|
1394
1394
|
// The primary key column is shared by every subtype, so it stays NOT NULL —
|
|
1395
1395
|
// only subtype-specific columns become nullable for the rows of other subtypes.
|
|
1396
1396
|
newProp.nullable = !newProp.primary;
|
|
1397
|
-
|
|
1397
|
+
// A subtype-specific property is `inherited` on the root so it is not pushed down to
|
|
1398
|
+
// sibling subtypes that don't declare it. When a second child redeclares the same
|
|
1399
|
+
// property, the root prop was already marked inherited by the first child, so keep it.
|
|
1400
|
+
newProp.inherited = !rootProp || !!rootProp.inherited;
|
|
1398
1401
|
// For narrowed relation overrides, keep the root's declaration intact so
|
|
1399
1402
|
// the full target union (e.g. `Food`) is preserved for populates from the
|
|
1400
1403
|
// abstract root — otherwise the last child processed would win.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.1.5-dev.
|
|
3
|
+
"version": "7.1.5-dev.26",
|
|
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.5-dev.
|
|
144
|
+
static #ORM_VERSION = '7.1.5-dev.26';
|
|
145
145
|
/**
|
|
146
146
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
147
147
|
*/
|