@mikro-orm/sql 7.1.9-dev.25 → 7.1.9-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/AbstractSqlDriver.js +2 -3
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -1672,9 +1672,8 @@ export class AbstractSqlDriver extends DatabaseDriver {
|
|
|
1672
1672
|
});
|
|
1673
1673
|
// with `fixedOrder` the pivot PK is the order column, which is not guaranteed to be unique when the
|
|
1674
1674
|
// pivot table is managed externally, so we disambiguate the rows by their FKs on top of the PK
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
: [];
|
|
1675
|
+
// (including virtual ones, as the owner FK of a polymorphic pivot is only mapped via non-persisted relations)
|
|
1676
|
+
const pivotRelations = meta.pivotTable && !meta.compositePK ? meta.relations.filter(p => p.kind === ReferenceKind.MANY_TO_ONE) : [];
|
|
1678
1677
|
for (const item of rawResults) {
|
|
1679
1678
|
let pk = Utils.getCompositeKeyHash(item, meta);
|
|
1680
1679
|
if (pivotRelations.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sql",
|
|
3
|
-
"version": "7.1.9-dev.
|
|
3
|
+
"version": "7.1.9-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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.1.8"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.1.9-dev.
|
|
56
|
+
"@mikro-orm/core": "7.1.9-dev.26"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|