@mikro-orm/sql 7.2.1-dev.10 → 7.2.1-dev.12
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/AbstractSqlDriver.js +3 -1
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -1803,6 +1803,8 @@ export class AbstractSqlDriver extends DatabaseDriver {
|
|
|
1803
1803
|
if (options.parentJoinPath) {
|
|
1804
1804
|
// alias all fields in the primary table
|
|
1805
1805
|
meta.props
|
|
1806
|
+
// flattened children of inline embeddables are expanded via their parent, iterating them too would select the columns twice
|
|
1807
|
+
.filter(prop => !prop.embedded)
|
|
1806
1808
|
.filter(prop => this.shouldHaveColumn(meta, prop, populate, options.explicitFields, options.exclude))
|
|
1807
1809
|
.forEach(prop => fields.push(...this.mapPropToFieldNames(qb, prop, options.parentTableAlias, meta, options.schema, options.explicitFields)));
|
|
1808
1810
|
}
|
|
@@ -1941,7 +1943,7 @@ export class AbstractSqlDriver extends DatabaseDriver {
|
|
|
1941
1943
|
// Add fields from this child (only ownProps, skip PKs)
|
|
1942
1944
|
const schema = childMeta.schema === '*' ? '*' : this.getSchemaName(childMeta);
|
|
1943
1945
|
childMeta
|
|
1944
|
-
.ownProps.filter(p => !p.primary && this.platform.shouldHaveColumn(p, []))
|
|
1946
|
+
.ownProps.filter(p => !p.primary && !p.embedded && this.platform.shouldHaveColumn(p, []))
|
|
1945
1947
|
.forEach(prop => fields.push(...this.mapPropToFieldNames(qb, prop, childAlias, childMeta, schema)));
|
|
1946
1948
|
}
|
|
1947
1949
|
// Add computed discriminator (descendants already sorted by depth)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sql",
|
|
3
|
-
"version": "7.2.1-dev.
|
|
3
|
+
"version": "7.2.1-dev.12",
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.2.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.2.1-dev.
|
|
56
|
+
"@mikro-orm/core": "7.2.1-dev.12"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|