Update mikro-orm monorepo to v7.2.0 #117

Open
renovate-bot wants to merge 1 commit from renovate/mikro-orm-monorepo into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@mikro-orm/cli (source) 7.1.57.2.0 age adoption passing confidence
@mikro-orm/core (source) 7.1.57.2.0 age adoption passing confidence
@mikro-orm/migrations (source) 7.1.57.2.0 age adoption passing confidence
@mikro-orm/postgresql (source) 7.1.57.2.0 age adoption passing confidence

Release Notes

mikro-orm/mikro-orm (@​mikro-orm/cli)

v7.2.0

Compare Source

Bug Fixes
  • cli: surface the real error when a TypeScript loader fails to load (#​8245) (28bdfd2)
  • core: decompose nested cursor groups lexicographically (4f0f696)
  • core: follow the platform's own null ordering in cursor pagination (7d1b174)
  • core: handle orderBy directions carrying a nulls qualifier (#​8247) (8f4ae39)
  • core: preserve nested populate filters across loading strategies (#​8243) (5b5fd36)
  • core: treat @Formula properties as nullable in cursor pagination (#​8249) (f2aa86c)
  • decorators: skip @oxc-node/core helper frames when resolving entity path (#​8246) (11f79e7)
  • postgres: forward pool.min to the pg pool (#​8237) (188b064), closes #​8234
Features
Performance Improvements
  • core: skip structural variance measurement of defineEntity builder and entity types (#​8242) (b135126), closes #​8240

7.1.15 (2026-09-03)

Bug Fixes

7.1.14 (2026-08-26)

Bug Fixes

7.1.13 (2026-08-20)

Bug Fixes
Features

7.1.12 (2026-08-17)

Bug Fixes

7.1.11 (2026-08-06)

Bug Fixes

7.1.10 (2026-08-04)

Bug Fixes

7.1.9 (2026-07-30)

Bug Fixes
  • core: fix batch updates when the whole primary key is one relation (#​8065) (aeefa5e)
  • core: keep null value of embedded arrays in snapshots and hydration (#​8046) (93d62bf), closes #​8045
  • core: keep the fixed order column as the sole pivot PK for polymorphic M:N (#​8083) (3ac8b73)
  • core: map returning values back to entities after batch update (#​8056) (5895309)
  • core: support mixed STI child types in batch updates (#​8057) (f6e5fd4)
  • core: support version and optimistic locking on nested composite keys (#​8064) (d533e76)
  • entity-generator: correctly escape generated string literals and keys (#​8048) (adf2b84)
  • entity-generator: sanitize file names taken from database metadata (#​8052) (4efac39)
  • libsql: stop recycling local connections every 10 seconds (#​8050) (bd2a1cf)
  • migrations: sanitize custom migration names into valid class identifiers (#​8053) (20a3ae2)
  • mssql: execute create trigger in its own query batch (#​8072) (5d0420e)
  • mssql: manage table and column comments via extended properties (#​8076) (d579f04)
  • oracledb: bind every returned column of a multi column property (#​8059) (dc17ec2)
  • oracle: keep the config user in sync with the pool after dropDatabase() (#​8043) (6e1113d)
  • oracle: set the session schema when the connection user differs from dbName (#​8042) (3a942d2), closes #​8040
  • postgresql: don't crash the process when the server drops a connection (#​8069) (66d3b1a)
  • sql: apply column comment changes in a single schema update pass (#​8077) (c48a435)
  • sql: apply query cancellation strategies inside transactions (#​8067) (11525e3)
  • sql: compile an empty $or to an always-false predicate (#​8054) (0578108)
  • sql: emit valid SQL for negated and empty condition groups (#​8060) (905286b)
  • sql: include composite FK values in the pivot row hash (#​8082) (f2d5a89), closes #​8078 #​8078
  • sql: keep multi line comments intact when grouping schema DDL (#​8079) (b74e332)
  • sql: keep multi line trigger bodies stable across schema updates (#​8074) (165ff59)
  • sql: keep pivot rows distinct when the fixed order column is not unique (#​8078) (63a2c83), closes #​8075
  • sql: keep polymorphic pivot rows distinct when the fixed order column is not unique (#​8085) (20734f7), closes #​8078
  • sql: keep the original error when the rollback of a failed transaction also fails (#​8068) (7663639)
  • sql: load M:N collections of owners with a nested composite PK (#​8080) (d4a5a33)
  • sql: load the owner side of a polymorphic M:N pivot shared by owners of different PK arity (#​8084) (6fbdcc4), closes #​8081
  • sql: load the owner side of a polymorphic M:N with a composite PK owner (#​8081) (a38cca5), closes #​8080
  • sql: normalize implicit aggregate aliases and multi word casts (#​8058) (e90c141), closes #​8055
  • sql: normalize trigger bodies when generating DDL (#​8063) (32da92f), closes #​8061
  • sql: pass a flat PK array when persisting M:N of a composite PK owner (#​8073) (f88d567)

7.1.8 (2026-07-28)

Bug Fixes

7.1.7 (2026-07-17)

Bug Fixes
  • core: ignore special object keys in assign() (#​7998) (6c65ffb)
  • core: support same-named nested embeddables with different props in polymorphic embeddables (#​7986) (c926fd8), closes #​7983
  • mariadb: keep JSON columns as strings on mysql2 3.23+ (#​7994) (0154130), closes #​7981
  • mssql: map FK, CHECK, PK/unique, deadlock and lock-timeout errors to driver exceptions (#​7959) (adc52fc)
  • mssql: retry create database when the model database is locked (#​7985) (f528107)
  • postgres: make check introspection columnName deterministic (#​7992) (ab14f97), closes #​7991
  • sql: validate order by direction against known values (#​7996) (3aba926)

7.1.6 (2026-07-13)

Bug Fixes

7.1.5 (2026-06-26)

Bug Fixes

7.1.4 (2026-06-06)

Bug Fixes
Features

7.1.3 (2026-05-31)

Bug Fixes
Features

7.1.2 (2026-05-29)

Bug Fixes
Features

7.1.1 (2026-05-22)

Bug Fixes

v7.1.15

Compare Source

Bug Fixes

v7.1.14

Compare Source

Bug Fixes

v7.1.13

Compare Source

Bug Fixes
Features

v7.1.12

Compare Source

Bug Fixes

v7.1.11

Compare Source

Bug Fixes

v7.1.10

Compare Source

Bug Fixes

v7.1.9

Compare Source

Bug Fixes
  • core: fix batch updates when the whole primary key is one relation (#​8065) (aeefa5e)
  • core: keep null value of embedded arrays in snapshots and hydration (#​8046) (93d62bf), closes #​8045
  • core: keep the fixed order column as the sole pivot PK for polymorphic M:N (#​8083) (3ac8b73)
  • core: map returning values back to entities after batch update (#​8056) (5895309)
  • core: support mixed STI child types in batch updates (#​8057) (f6e5fd4)
  • core: support version and optimistic locking on nested composite keys (#​8064) (d533e76)
  • entity-generator: correctly escape generated string literals and keys (#​8048) (adf2b84)
  • entity-generator: sanitize file names taken from database metadata (#​8052) (4efac39)
  • libsql: stop recycling local connections every 10 seconds (#​8050) (bd2a1cf)
  • migrations: sanitize custom migration names into valid class identifiers (#​8053) (20a3ae2)
  • mssql: execute create trigger in its own query batch (#​8072) (5d0420e)
  • mssql: manage table and column comments via extended properties (#​8076) (d579f04)
  • oracledb: bind every returned column of a multi column property (#​8059) (dc17ec2)
  • oracle: keep the config user in sync with the pool after dropDatabase() (#​8043) (6e1113d)
  • oracle: set the session schema when the connection user differs from dbName (#​8042) (3a942d2), closes #​8040
  • postgresql: don't crash the process when the server drops a connection (#​8069) (66d3b1a)
  • sql: apply column comment changes in a single schema update pass (#​8077) (c48a435)
  • sql: apply query cancellation strategies inside transactions (#​8067) (11525e3)
  • sql: compile an empty $or to an always-false predicate (#​8054) (0578108)
  • sql: emit valid SQL for negated and empty condition groups (#​8060) (905286b)
  • sql: include composite FK values in the pivot row hash (#​8082) (f2d5a89), closes #​8078 #​8078
  • sql: keep multi line comments intact when grouping schema DDL (#​8079) (b74e332)
  • sql: keep multi line trigger bodies stable across schema updates (#​8074) (165ff59)
  • sql: keep pivot rows distinct when the fixed order column is not unique (#​8078) (63a2c83), closes #​8075
  • sql: keep polymorphic pivot rows distinct when the fixed order column is not unique (#​8085) (20734f7), closes #​8078
  • sql: keep the original error when the rollback of a failed transaction also fails (#​8068) (7663639)
  • sql: load M:N collections of owners with a nested composite PK (#​8080) (d4a5a33)
  • sql: load the owner side of a polymorphic M:N pivot shared by owners of different PK arity (#​8084) (6fbdcc4), closes #​8081
  • sql: load the owner side of a polymorphic M:N with a composite PK owner (#​8081) (a38cca5), closes #​8080
  • sql: normalize implicit aggregate aliases and multi word casts (#​8058) (e90c141), closes #​8055
  • sql: normalize trigger bodies when generating DDL (#​8063) (32da92f), closes #​8061
  • sql: pass a flat PK array when persisting M:N of a composite PK owner (#​8073) (f88d567)

v7.1.8

Compare Source

Bug Fixes

v7.1.7

Compare Source

Bug Fixes
  • core: ignore special object keys in assign() (#​7998) (6c65ffb)
  • core: support same-named nested embeddables with different props in polymorphic embeddables (#​7986) (c926fd8), closes #​7983
  • mariadb: keep JSON columns as strings on mysql2 3.23+ (#​7994) (0154130), closes #​7981
  • mssql: map FK, CHECK, PK/unique, deadlock and lock-timeout errors to driver exceptions (#​7959) (adc52fc)
  • mssql: retry create database when the model database is locked (#​7985) (f528107)
  • postgres: make check introspection columnName deterministic (#​7992) (ab14f97), closes #​7991
  • sql: validate order by direction against known values (#​7996) (3aba926)

v7.1.6

Compare Source

Bug Fixes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [@mikro-orm/cli](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.0`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcli/7.1.5/7.2.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcli/7.2.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcli/7.2.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcli/7.1.5/7.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcli/7.1.5/7.2.0?slim=true) | | [@mikro-orm/core](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.0`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcore/7.1.5/7.2.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcore/7.2.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcore/7.2.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcore/7.1.5/7.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcore/7.1.5/7.2.0?slim=true) | | [@mikro-orm/migrations](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.0`](https://renovatebot.com/diffs/npm/@mikro-orm%2fmigrations/7.1.5/7.2.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fmigrations/7.2.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fmigrations/7.2.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fmigrations/7.1.5/7.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fmigrations/7.1.5/7.2.0?slim=true) | | [@mikro-orm/postgresql](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.0`](https://renovatebot.com/diffs/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fpostgresql/7.2.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fpostgresql/7.2.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.0?slim=true) | --- ### Release Notes <details> <summary>mikro-orm/mikro-orm (@&#8203;mikro-orm/cli)</summary> ### [`v7.2.0`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#720-2026-09-07) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.15...v7.2.0) ##### Bug Fixes - **cli:** surface the real error when a TypeScript loader fails to load ([#&#8203;8245](https://github.com/mikro-orm/mikro-orm/issues/8245)) ([28bdfd2](https://github.com/mikro-orm/mikro-orm/commit/28bdfd2ae06a085cd7f03d0e4c3d1d38bc538297)) - **core:** decompose nested cursor groups lexicographically ([4f0f696](https://github.com/mikro-orm/mikro-orm/commit/4f0f696eaaae709efdff5def57ec2157a2c1eee5)) - **core:** follow the platform's own null ordering in cursor pagination ([7d1b174](https://github.com/mikro-orm/mikro-orm/commit/7d1b174d01f4c76710c46b2e075f12b6c3290151)) - **core:** handle `orderBy` directions carrying a nulls qualifier ([#&#8203;8247](https://github.com/mikro-orm/mikro-orm/issues/8247)) ([8f4ae39](https://github.com/mikro-orm/mikro-orm/commit/8f4ae39994809166de2e380844b7c6beef5181a2)) - **core:** preserve nested populate filters across loading strategies ([#&#8203;8243](https://github.com/mikro-orm/mikro-orm/issues/8243)) ([5b5fd36](https://github.com/mikro-orm/mikro-orm/commit/5b5fd36ec39c9a4439f717ef7dcdb015e259768e)) - **core:** treat `@Formula` properties as nullable in cursor pagination ([#&#8203;8249](https://github.com/mikro-orm/mikro-orm/issues/8249)) ([f2aa86c](https://github.com/mikro-orm/mikro-orm/commit/f2aa86c3c6de186dfcd84c28178b0a85bb70c07a)) - **decorators:** skip `@oxc-node/core` helper frames when resolving entity path ([#&#8203;8246](https://github.com/mikro-orm/mikro-orm/issues/8246)) ([11f79e7](https://github.com/mikro-orm/mikro-orm/commit/11f79e76bb190f307e6875812b6249696f46d9ec)) - **postgres:** forward `pool.min` to the `pg` pool ([#&#8203;8237](https://github.com/mikro-orm/mikro-orm/issues/8237)) ([188b064](https://github.com/mikro-orm/mikro-orm/commit/188b06485e485289ca3bbd4a1f6f4f82b691ddb3)), closes [#&#8203;8234](https://github.com/mikro-orm/mikro-orm/issues/8234) ##### Features - **cli:** add a "-q" param, to suppress informational output ([#&#8203;7886](https://github.com/mikro-orm/mikro-orm/issues/7886)) ([1450d3f](https://github.com/mikro-orm/mikro-orm/commit/1450d3fa339460fc12845c3caa90735c1630761e)) - **cli:** add Nub TypeScript loader option ([#&#8203;8253](https://github.com/mikro-orm/mikro-orm/issues/8253)) ([7196a72](https://github.com/mikro-orm/mikro-orm/commit/7196a723f22fe189fd3f1f49f2de54d041184482)) - **cli:** the "--combined" argument of cache:generate can optionally be a path to the cache file ([#&#8203;7963](https://github.com/mikro-orm/mikro-orm/issues/7963)) ([6dbe55d](https://github.com/mikro-orm/mikro-orm/commit/6dbe55d09e2af1b6a595fbdd1f144d529a96c32f)) - **core:** add `getNativeClient()` to access the underlying database client ([#&#8203;8148](https://github.com/mikro-orm/mikro-orm/issues/8148)) ([27634ad](https://github.com/mikro-orm/mikro-orm/commit/27634adcf8c826c1bea3eb60cc62829567e23322)), closes [#&#8203;8146](https://github.com/mikro-orm/mikro-orm/issues/8146) - **core:** add `through` option for read-only to-one relations resolved via subquery ([#&#8203;8239](https://github.com/mikro-orm/mikro-orm/issues/8239)) ([5e621e0](https://github.com/mikro-orm/mikro-orm/commit/5e621e03760dfb0e6c2d0a3aaf5c396ed5e482ac)), closes [#&#8203;8238](https://github.com/mikro-orm/mikro-orm/issues/8238) - **core:** add native support for row level security ([#&#8203;7984](https://github.com/mikro-orm/mikro-orm/issues/7984)) ([8336552](https://github.com/mikro-orm/mikro-orm/commit/8336552026ffe1125fa0e8f9ab1a3a0632a56982)), closes [#&#8203;6137](https://github.com/mikro-orm/mikro-orm/issues/6137) [#&#8203;6413](https://github.com/mikro-orm/mikro-orm/issues/6413) [#&#8203;6493](https://github.com/mikro-orm/mikro-orm/issues/6493) [#&#8203;6493](https://github.com/mikro-orm/mikro-orm/issues/6493) - **core:** allow map to bypass identity map ([#&#8203;8199](https://github.com/mikro-orm/mikro-orm/issues/8199)) ([4d6a564](https://github.com/mikro-orm/mikro-orm/commit/4d6a5640c9dedf8740715a73c71d741f951637de)) - **core:** allow specifying a callback for the RequestContext options ([#&#8203;7925](https://github.com/mikro-orm/mikro-orm/issues/7925)) ([74ea240](https://github.com/mikro-orm/mikro-orm/commit/74ea24084aa0301d635200353f641ff2d1adde8d)) - **core:** rework cursor pagination for custom types and nullable columns ([#&#8203;8103](https://github.com/mikro-orm/mikro-orm/issues/8103)) ([35a1455](https://github.com/mikro-orm/mikro-orm/commit/35a1455ccd5acb6c3574bd99294c8e30af6a5239)), closes [#&#8203;8097](https://github.com/mikro-orm/mikro-orm/issues/8097) - **core:** support `await using` via `Symbol.asyncDispose` ([#&#8203;8159](https://github.com/mikro-orm/mikro-orm/issues/8159)) ([e1cbd5d](https://github.com/mikro-orm/mikro-orm/commit/e1cbd5dc565e4c8506d14c570f3c034c2cdc99a9)), closes [#&#8203;8158](https://github.com/mikro-orm/mikro-orm/issues/8158) - **core:** support `index` option on M:N properties for pivot table join columns ([#&#8203;8160](https://github.com/mikro-orm/mikro-orm/issues/8160)) ([aa177ed](https://github.com/mikro-orm/mikro-orm/commit/aa177ed6fdcdcd0ae25f4c42c2ac93186aacbdd6)), closes [#&#8203;8156](https://github.com/mikro-orm/mikro-orm/issues/8156) - **core:** support configurable string normalization ([#&#8203;8169](https://github.com/mikro-orm/mikro-orm/issues/8169)) ([96fdbb4](https://github.com/mikro-orm/mikro-orm/commit/96fdbb4542307b10328845adc2735cff634fd129)), closes [#&#8203;8165](https://github.com/mikro-orm/mikro-orm/issues/8165) - **core:** support named parameters in `em.execute()` ([#&#8203;8173](https://github.com/mikro-orm/mikro-orm/issues/8173)) ([17788fc](https://github.com/mikro-orm/mikro-orm/commit/17788fc5e0fe960173cd09e6ec45d1f2965a453a)), closes [#&#8203;8093](https://github.com/mikro-orm/mikro-orm/issues/8093) - **migrations:** allow opting out of snapshot updates on migrate ([#&#8203;8039](https://github.com/mikro-orm/mikro-orm/issues/8039)) ([c1d8561](https://github.com/mikro-orm/mikro-orm/commit/c1d85616af871518c87561626f51d86c19b8ad27)) - **mongo:** add `$all` query operator support ([#&#8203;7931](https://github.com/mikro-orm/mikro-orm/issues/7931)) ([a8fb833](https://github.com/mikro-orm/mikro-orm/commit/a8fb833d4aa08ef1e0d00253b2eeb6c96f80fc7c)) - **sql-js:** add sql.js driver for in-memory SQLite in WebAssembly ([#&#8203;7783](https://github.com/mikro-orm/mikro-orm/issues/7783)) ([c168a0f](https://github.com/mikro-orm/mikro-orm/commit/c168a0fe742d1b9af65f0719a72008492622023f)) - **sql:** support the `$all` operator on collection properties ([#&#8203;8248](https://github.com/mikro-orm/mikro-orm/issues/8248)) ([c987f8a](https://github.com/mikro-orm/mikro-orm/commit/c987f8a52f7555b320412783dda8bc378acd4f7a)), closes [#&#8203;7931](https://github.com/mikro-orm/mikro-orm/issues/7931) ##### Performance Improvements - **core:** skip structural variance measurement of `defineEntity` builder and entity types ([#&#8203;8242](https://github.com/mikro-orm/mikro-orm/issues/8242)) ([b135126](https://github.com/mikro-orm/mikro-orm/commit/b135126f2b31c2d500a498e505182d5e8fdf54ee)), closes [#&#8203;8240](https://github.com/mikro-orm/mikro-orm/issues/8240) #### [7.1.15](https://github.com/mikro-orm/mikro-orm/compare/v7.1.14...v7.1.15) (2026-09-03) ##### Bug Fixes - **core:** apply TPT concurrency check only to the table that declares it ([#&#8203;8228](https://github.com/mikro-orm/mikro-orm/issues/8228)) ([9d47084](https://github.com/mikro-orm/mikro-orm/commit/9d47084ed0c64487431a1ee1e34f9529bc413257)), closes [#&#8203;8227](https://github.com/mikro-orm/mikro-orm/issues/8227) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) - **core:** apply TPT version property only to the table that declares it ([#&#8203;8227](https://github.com/mikro-orm/mikro-orm/issues/8227)) ([8ee0365](https://github.com/mikro-orm/mikro-orm/commit/8ee036519466e500c953a4fa96ec53d2fde900e2)), closes [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) - **core:** escape entity property names in generated hydration/comparison code ([#&#8203;8221](https://github.com/mikro-orm/mikro-orm/issues/8221)) ([b01c17d](https://github.com/mikro-orm/mikro-orm/commit/b01c17d8c9590b9f3bc7534dc5d198072812b226)) - **core:** infer `serializer` callback value from relation kind in `defineEntity` ([#&#8203;8215](https://github.com/mikro-orm/mikro-orm/issues/8215)) ([9631464](https://github.com/mikro-orm/mikro-orm/commit/963146430578325920687e1341ece8cc245a5d5b)), closes [#&#8203;8214](https://github.com/mikro-orm/mikro-orm/issues/8214) - **core:** resolve user-class lookups by class reference instead of class name ([#&#8203;8209](https://github.com/mikro-orm/mikro-orm/issues/8209)) ([2431265](https://github.com/mikro-orm/mikro-orm/commit/2431265f11baafee4afc8c1e19c89cf180c0345f)), closes [#&#8203;8208](https://github.com/mikro-orm/mikro-orm/issues/8208) - **core:** support polymorphic relations inside embeddables ([#&#8203;8219](https://github.com/mikro-orm/mikro-orm/issues/8219)) ([69ed8f8](https://github.com/mikro-orm/mikro-orm/commit/69ed8f816e887067d1ea8de4c3d894b7751b1056)), closes [#&#8203;8218](https://github.com/mikro-orm/mikro-orm/issues/8218) [#&#8203;8217](https://github.com/mikro-orm/mikro-orm/issues/8217) - **sql:** join TPT parent tables for relations targeting a sub-class ([#&#8203;8233](https://github.com/mikro-orm/mikro-orm/issues/8233)) ([a7e1521](https://github.com/mikro-orm/mikro-orm/commit/a7e1521d7f808e8af9311a29d0a2c2da51045797)), closes [#&#8203;8231](https://github.com/mikro-orm/mikro-orm/issues/8231) - **sql:** keep relation filters within their own join branch ([#&#8203;8212](https://github.com/mikro-orm/mikro-orm/issues/8212)) ([d5feeff](https://github.com/mikro-orm/mikro-orm/commit/d5feeffefd690e998d45753cbd5e97a9d1dcc133)), closes [#&#8203;8210](https://github.com/mikro-orm/mikro-orm/issues/8210) - **sql:** prevent endless loop when entity filters form a relation cycle ([#&#8203;8213](https://github.com/mikro-orm/mikro-orm/issues/8213)) ([f30ead9](https://github.com/mikro-orm/mikro-orm/commit/f30ead943a06612d41c9c38edf3ff33d3c018fc8)), closes [#&#8203;8211](https://github.com/mikro-orm/mikro-orm/issues/8211) - **sql:** support upsert for TPT entities ([#&#8203;8229](https://github.com/mikro-orm/mikro-orm/issues/8229)) ([eafda32](https://github.com/mikro-orm/mikro-orm/commit/eafda3243dafba02d79e743b1548bd7077c1a900)), closes [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) #### [7.1.14](https://github.com/mikro-orm/mikro-orm/compare/v7.1.13...v7.1.14) (2026-08-26) ##### Bug Fixes - **core:** don't double-wrap `orderBy` in M:N dataloader batch load ([#&#8203;8194](https://github.com/mikro-orm/mikro-orm/issues/8194)) ([20aa5a8](https://github.com/mikro-orm/mikro-orm/commit/20aa5a80c551ef7f36e88f3e5ef2ec080bff48a5)), closes [#&#8203;8193](https://github.com/mikro-orm/mikro-orm/issues/8193) - **core:** don't require the discriminator value when creating an STI entity ([#&#8203;8201](https://github.com/mikro-orm/mikro-orm/issues/8201)) ([2b0ca9b](https://github.com/mikro-orm/mikro-orm/commit/2b0ca9b1635401b797b96e077211e54a2034aa10)), closes [#&#8203;7677](https://github.com/mikro-orm/mikro-orm/issues/7677) [#&#8203;8200](https://github.com/mikro-orm/mikro-orm/issues/8200) - **core:** evict referrers holding a removed entity in their primary key ([#&#8203;8205](https://github.com/mikro-orm/mikro-orm/issues/8205)) ([16d80a9](https://github.com/mikro-orm/mikro-orm/commit/16d80a9b784f01f0ab060e6c0331728dcc420377)), closes [#&#8203;8203](https://github.com/mikro-orm/mikro-orm/issues/8203) - **core:** infer primary key from plain class base in `defineEntity` ([#&#8203;8207](https://github.com/mikro-orm/mikro-orm/issues/8207)) ([7762f42](https://github.com/mikro-orm/mikro-orm/commit/7762f42e9aa2c4babb28c38066221f27948e43ff)) - **core:** respect explicit join alias in JSON property conditions ([#&#8203;8195](https://github.com/mikro-orm/mikro-orm/issues/8195)) ([16a147c](https://github.com/mikro-orm/mikro-orm/commit/16a147c16c86727ff36470c96086a443aa0e3e70)), closes [#&#8203;8192](https://github.com/mikro-orm/mikro-orm/issues/8192) - **postgres:** strip array-typed casts cleanly when recovering check constraints ([#&#8203;8198](https://github.com/mikro-orm/mikro-orm/issues/8198)) ([2b3d9c3](https://github.com/mikro-orm/mikro-orm/commit/2b3d9c33f2d805d827af44771ea34a7691cbf240)), closes [#&#8203;8197](https://github.com/mikro-orm/mikro-orm/issues/8197) - **sql:** keep row-value tuples in `$in` on a `raw()` key ([#&#8203;8202](https://github.com/mikro-orm/mikro-orm/issues/8202)) ([7c2e382](https://github.com/mikro-orm/mikro-orm/commit/7c2e38250cc51845fe1bfe432b0ced8995f9c95b)) - **sql:** skip trigger diff when only one side uses `expression` ([#&#8203;8191](https://github.com/mikro-orm/mikro-orm/issues/8191)) ([e486d39](https://github.com/mikro-orm/mikro-orm/commit/e486d39daf8f2ff8a0becd7756339e03adef5def)), closes [#&#8203;8190](https://github.com/mikro-orm/mikro-orm/issues/8190) #### [7.1.13](https://github.com/mikro-orm/mikro-orm/compare/v7.1.12...v7.1.13) (2026-08-20) ##### Bug Fixes - **core:** accept plain arrays for enum array properties in EntityData ([#&#8203;8167](https://github.com/mikro-orm/mikro-orm/issues/8167)) ([3812a88](https://github.com/mikro-orm/mikro-orm/commit/3812a88f6c6a6d351177388a60957945faed11c5)), closes [#&#8203;8166](https://github.com/mikro-orm/mikro-orm/issues/8166) - **core:** derive FK field names from `targetKey` instead of composite PKs ([#&#8203;8172](https://github.com/mikro-orm/mikro-orm/issues/8172)) ([92a826b](https://github.com/mikro-orm/mikro-orm/commit/92a826bea1c8af0385f5ae12159a42236bfcab7d)) - **core:** don't overwrite existing rows with onCreate generated values in upsert ([#&#8203;8186](https://github.com/mikro-orm/mikro-orm/issues/8186)) ([4052f58](https://github.com/mikro-orm/mikro-orm/commit/4052f58086fcafb4b266c7dbb6c0b9fa2c1ed833)), closes [#&#8203;7399](https://github.com/mikro-orm/mikro-orm/issues/7399) - **core:** keep `$or` conditions intact when populating to-many relations ([#&#8203;8181](https://github.com/mikro-orm/mikro-orm/issues/8181)) ([026bd8b](https://github.com/mikro-orm/mikro-orm/commit/026bd8b30e131879bed281dc1b008ce2c7899aa4)), closes [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8180](https://github.com/mikro-orm/mikro-orm/issues/8180) - **core:** keep `$or` conditions intact when populating to-one relations ([#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176)) ([3776fe5](https://github.com/mikro-orm/mikro-orm/commit/3776fe59d53f2b1253263389c014bb6da8425311)), closes [#&#8203;1882](https://github.com/mikro-orm/mikro-orm/issues/1882) [#&#8203;6658](https://github.com/mikro-orm/mikro-orm/issues/6658) [#&#8203;8175](https://github.com/mikro-orm/mikro-orm/issues/8175) - **core:** respect `connectionType` option in `em.countBy()` ([#&#8203;8188](https://github.com/mikro-orm/mikro-orm/issues/8188)) ([9e8e3bd](https://github.com/mikro-orm/mikro-orm/commit/9e8e3bdd84ee7f4f16be1dbfbaa1f7ff7047e996)), closes [#&#8203;8187](https://github.com/mikro-orm/mikro-orm/issues/8187) - **core:** skip enum check constraints for `json`/`jsonb` columns ([#&#8203;8184](https://github.com/mikro-orm/mikro-orm/issues/8184)) ([018e522](https://github.com/mikro-orm/mikro-orm/commit/018e5228ce322f69b924ca626fdbe9c28f514647)), closes [#&#8203;8183](https://github.com/mikro-orm/mikro-orm/issues/8183) - **decorators:** don't mutate base class metadata in TC39 decorators ([#&#8203;8177](https://github.com/mikro-orm/mikro-orm/issues/8177)) ([b4e72bd](https://github.com/mikro-orm/mikro-orm/commit/b4e72bd2b7c47c7949dab8ad1a44c10edec33cca)), closes [#&#8203;8178](https://github.com/mikro-orm/mikro-orm/issues/8178) - **query-builder:** keep filter `$or` intact when it spans joined to-one relations ([#&#8203;8182](https://github.com/mikro-orm/mikro-orm/issues/8182)) ([3baa862](https://github.com/mikro-orm/mikro-orm/commit/3baa8620761ca85a780dffbbf26b3d5bcc01a186)), closes [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8179](https://github.com/mikro-orm/mikro-orm/issues/8179) - **sql:** convert custom type values in kysely where clauses ([#&#8203;8189](https://github.com/mikro-orm/mikro-orm/issues/8189)) ([f81cef2](https://github.com/mikro-orm/mikro-orm/commit/f81cef2fef8c48904d8786e81ecc3863ffe57438)) ##### Features - **core:** inherit `collation` from referenced PK on FK columns ([#&#8203;8171](https://github.com/mikro-orm/mikro-orm/issues/8171)) ([126675c](https://github.com/mikro-orm/mikro-orm/commit/126675c4ac891f30572c3a998e60c867d19a0b3c)), closes [#&#8203;8170](https://github.com/mikro-orm/mikro-orm/issues/8170) #### [7.1.12](https://github.com/mikro-orm/mikro-orm/compare/v7.1.11...v7.1.12) (2026-08-17) ##### Bug Fixes - **core:** do not mutate caller-provided options in `merge`, `create`, `getReference` and `fork` ([#&#8203;8150](https://github.com/mikro-orm/mikro-orm/issues/8150)) ([8f3ea3f](https://github.com/mikro-orm/mikro-orm/commit/8f3ea3feeaf2b1c8356803745152db0dba5add52)), closes [#&#8203;8144](https://github.com/mikro-orm/mikro-orm/issues/8144) [#&#8203;8143](https://github.com/mikro-orm/mikro-orm/issues/8143) - **core:** do not mutate the options object provided by the caller ([#&#8203;8144](https://github.com/mikro-orm/mikro-orm/issues/8144)) ([bc60f44](https://github.com/mikro-orm/mikro-orm/commit/bc60f44be58275efd401b792a4f7bfe7d10a0a28)), closes [#&#8203;8143](https://github.com/mikro-orm/mikro-orm/issues/8143) - **core:** use own-property checks in populate hints, canPopulate, and filter options ([#&#8203;8164](https://github.com/mikro-orm/mikro-orm/issues/8164)) ([fdf9f50](https://github.com/mikro-orm/mikro-orm/commit/fdf9f5011f64e79c153439f994ecada5cfba55d9)) - **postgres:** emit and diff the index access method ([#&#8203;8126](https://github.com/mikro-orm/mikro-orm/issues/8126)) ([94d57e8](https://github.com/mikro-orm/mikro-orm/commit/94d57e8ad000eed93dd805a7d8531a784d55ef87)), closes [#&#8203;8124](https://github.com/mikro-orm/mikro-orm/issues/8124) - **postgres:** flatten dollar-quoted bodies in raw trigger and routine DDL ([#&#8203;8142](https://github.com/mikro-orm/mikro-orm/issues/8142)) ([5835d84](https://github.com/mikro-orm/mikro-orm/commit/5835d84c93b3115226b6231cad7ec5e7729a73d8)), closes [#&#8203;8063](https://github.com/mikro-orm/mikro-orm/issues/8063) [#&#8203;8062](https://github.com/mikro-orm/mikro-orm/issues/8062) [#&#8203;8140](https://github.com/mikro-orm/mikro-orm/issues/8140) - **postgres:** keep parens balanced when stripping casts from introspected checks ([#&#8203;8125](https://github.com/mikro-orm/mikro-orm/issues/8125)) ([93bf909](https://github.com/mikro-orm/mikro-orm/commit/93bf90930cf52f376ebd363e489fb9183886a71c)), closes [#&#8203;8123](https://github.com/mikro-orm/mikro-orm/issues/8123) - **query-builder:** allow alias-prefixed keys in nested `$and`/`$or` groups ([#&#8203;8147](https://github.com/mikro-orm/mikro-orm/issues/8147)) ([ac7cc91](https://github.com/mikro-orm/mikro-orm/commit/ac7cc919ba044241783b2545a9490b347614a88d)), closes [#&#8203;8145](https://github.com/mikro-orm/mikro-orm/issues/8145) - **schema:** create foreign keys of new tables after altering existing ones ([#&#8203;8151](https://github.com/mikro-orm/mikro-orm/issues/8151)) ([96ec0fa](https://github.com/mikro-orm/mikro-orm/commit/96ec0fae03f906e08c9a129569603e226618b8af)), closes [#&#8203;8141](https://github.com/mikro-orm/mikro-orm/issues/8141) - **sql:** compare quoted decimal defaults numerically ([#&#8203;8132](https://github.com/mikro-orm/mikro-orm/issues/8132)) ([2776140](https://github.com/mikro-orm/mikro-orm/commit/27761407b2ff8a8a87ed0bf9b13286bc812bd455)), closes [#&#8203;8131](https://github.com/mikro-orm/mikro-orm/issues/8131) - **sql:** resolve TPT parent alias in JSON property conditions ([#&#8203;8163](https://github.com/mikro-orm/mikro-orm/issues/8163)) ([fec54ef](https://github.com/mikro-orm/mikro-orm/commit/fec54ef0c3480c48bcb4fec5a2d841cfef9f1af5)), closes [#&#8203;8162](https://github.com/mikro-orm/mikro-orm/issues/8162) - **sql:** support joining a table or CTE by name via sql.ref() ([#&#8203;8161](https://github.com/mikro-orm/mikro-orm/issues/8161)) ([45d67be](https://github.com/mikro-orm/mikro-orm/commit/45d67bed10fb371dbbf3a266038b9b1eabf0c050)), closes [#&#8203;8157](https://github.com/mikro-orm/mikro-orm/issues/8157) #### [7.1.11](https://github.com/mikro-orm/mikro-orm/compare/v7.1.10...v7.1.11) (2026-08-06) ##### Bug Fixes - **core:** ignore metadata cache entries cached from a different source file ([#&#8203;8111](https://github.com/mikro-orm/mikro-orm/issues/8111)) ([f53ab65](https://github.com/mikro-orm/mikro-orm/commit/f53ab65c39c26dc8e79beee4ab33cf4ac66b1676)), closes [#&#8203;8107](https://github.com/mikro-orm/mikro-orm/issues/8107) - **core:** ignore own `__proto__` key when cloning objects ([#&#8203;8120](https://github.com/mikro-orm/mikro-orm/issues/8120)) ([e09c881](https://github.com/mikro-orm/mikro-orm/commit/e09c8814a660097a60d011d75c69efb060077a58)) - **core:** resolve entity metadata via class references instead of class names ([#&#8203;8108](https://github.com/mikro-orm/mikro-orm/issues/8108)) ([d3564bf](https://github.com/mikro-orm/mikro-orm/commit/d3564bf29e4fafc2cdd9a5bd5a89bbb25f105e27)), closes [#&#8203;8107](https://github.com/mikro-orm/mikro-orm/issues/8107) - **entity-generator:** emit check constraints in generated entities ([#&#8203;8121](https://github.com/mikro-orm/mikro-orm/issues/8121)) ([5f56d24](https://github.com/mikro-orm/mikro-orm/commit/5f56d24e84e96b6ffa9ebde0255ec7a029e0b278)), closes [#&#8203;8114](https://github.com/mikro-orm/mikro-orm/issues/8114) - **entity-generator:** keep index column order when columns map to relations ([#&#8203;8119](https://github.com/mikro-orm/mikro-orm/issues/8119)) ([c3c0601](https://github.com/mikro-orm/mikro-orm/commit/c3c06010d1af4097d21470293f962aa7a1bb498f)), closes [#&#8203;8116](https://github.com/mikro-orm/mikro-orm/issues/8116) - **entity-generator:** preserve advanced options of single-column indexes ([#&#8203;8122](https://github.com/mikro-orm/mikro-orm/issues/8122)) ([e589ed4](https://github.com/mikro-orm/mikro-orm/commit/e589ed425d64bad01212a2f141be579a45ed9cab)), closes [#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118) [#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118) - **entity-generator:** preserve the where clause of partial indexes ([#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118)) ([fdaa9a8](https://github.com/mikro-orm/mikro-orm/commit/fdaa9a88a09ee8b316a4d74ca816a63b54e4ab3a)), closes [#&#8203;8115](https://github.com/mikro-orm/mikro-orm/issues/8115) - **migrations:** allow stable migration names when class names are minified ([#&#8203;8109](https://github.com/mikro-orm/mikro-orm/issues/8109)) ([560fb4f](https://github.com/mikro-orm/mikro-orm/commit/560fb4fac46b02715cf79af14c0fcc1c6126e22b)) - **sql:** infer columns with a default value as kysely `Generated` ([#&#8203;8117](https://github.com/mikro-orm/mikro-orm/issues/8117)) ([29f074f](https://github.com/mikro-orm/mikro-orm/commit/29f074f26dcd0390f2c138a59d253cdb36e3319d)), closes [#&#8203;8113](https://github.com/mikro-orm/mikro-orm/issues/8113) #### [7.1.10](https://github.com/mikro-orm/mikro-orm/compare/v7.1.9...v7.1.10) (2026-08-04) ##### Bug Fixes - **core:** duck-type `Routine.is()` to survive the CJS/ESM dual-package hazard ([#&#8203;8094](https://github.com/mikro-orm/mikro-orm/issues/8094)) ([59df822](https://github.com/mikro-orm/mikro-orm/commit/59df82261cab79649314ae597fbd00000bf9bd7f)), closes [#&#8203;7289](https://github.com/mikro-orm/mikro-orm/issues/7289) [#&#8203;8092](https://github.com/mikro-orm/mikro-orm/issues/8092) - **core:** map cursor offsets based on property types ([#&#8203;8097](https://github.com/mikro-orm/mikro-orm/issues/8097)) ([231ff06](https://github.com/mikro-orm/mikro-orm/commit/231ff06df5052c0e8235dda1b705710a2b81aff3)) - **core:** prevent hash collisions for nested composite keys ([#&#8203;8088](https://github.com/mikro-orm/mikro-orm/issues/8088)) ([7fef7ee](https://github.com/mikro-orm/mikro-orm/commit/7fef7ee9a4adaebb85318314fbd9aba7443c079c)) - **mongo:** support cursor pagination ordered by date inside object embeddable ([#&#8203;8102](https://github.com/mikro-orm/mikro-orm/issues/8102)) ([d3bb418](https://github.com/mikro-orm/mikro-orm/commit/d3bb41839fb8a991c3eb5cdd8a2ec27131f02e62)), closes [#&#8203;8097](https://github.com/mikro-orm/mikro-orm/issues/8097) - **mssql:** support predictable primary key names ([#&#8203;8095](https://github.com/mikro-orm/mikro-orm/issues/8095)) ([b16daec](https://github.com/mikro-orm/mikro-orm/commit/b16daec207a72e4a922d511d13fecb172dfdd957)) - **sql:** nest joins referenced by `on` conditions instead of only newly added ones ([#&#8203;8101](https://github.com/mikro-orm/mikro-orm/issues/8101)) ([d137965](https://github.com/mikro-orm/mikro-orm/commit/d137965922932b9ba6ffc6b52083fb79e4f5fde3)), closes [#&#8203;8100](https://github.com/mikro-orm/mikro-orm/issues/8100) [7681/#&#8203;8091](https://github.com/mikro-orm/mikro-orm/issues/8091) [#&#8203;8100](https://github.com/mikro-orm/mikro-orm/issues/8100) [#&#8203;8099](https://github.com/mikro-orm/mikro-orm/issues/8099) - **sql:** prevent forward join alias references when applying joined filters ([#&#8203;8091](https://github.com/mikro-orm/mikro-orm/issues/8091)) ([8388010](https://github.com/mikro-orm/mikro-orm/commit/83880104c3544be02ba00649f8078c5405db61a4)), closes [#&#8203;7681](https://github.com/mikro-orm/mikro-orm/issues/7681) [#&#8203;8090](https://github.com/mikro-orm/mikro-orm/issues/8090) - **sql:** yield all rows merged from the final batch when streaming ([#&#8203;8089](https://github.com/mikro-orm/mikro-orm/issues/8089)) ([989690a](https://github.com/mikro-orm/mikro-orm/commit/989690a2d2e5fcfe326972fb4d9531b2cb6c4853)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) #### [7.1.9](https://github.com/mikro-orm/mikro-orm/compare/v7.1.8...v7.1.9) (2026-07-30) ##### Bug Fixes - **core:** fix batch updates when the whole primary key is one relation ([#&#8203;8065](https://github.com/mikro-orm/mikro-orm/issues/8065)) ([aeefa5e](https://github.com/mikro-orm/mikro-orm/commit/aeefa5e90577fa24081a64f9f8ef55d1edbf8bd2)) - **core:** keep `null` value of embedded arrays in snapshots and hydration ([#&#8203;8046](https://github.com/mikro-orm/mikro-orm/issues/8046)) ([93d62bf](https://github.com/mikro-orm/mikro-orm/commit/93d62bf278b21169ade73b6448daab846634d5d0)), closes [#&#8203;8045](https://github.com/mikro-orm/mikro-orm/issues/8045) - **core:** keep the fixed order column as the sole pivot PK for polymorphic M:N ([#&#8203;8083](https://github.com/mikro-orm/mikro-orm/issues/8083)) ([3ac8b73](https://github.com/mikro-orm/mikro-orm/commit/3ac8b73ebd90dc85a414ae8f36ffddb185c71fd1)) - **core:** map returning values back to entities after batch update ([#&#8203;8056](https://github.com/mikro-orm/mikro-orm/issues/8056)) ([5895309](https://github.com/mikro-orm/mikro-orm/commit/589530926386ae962aa551465094e61307527e8b)) - **core:** support mixed STI child types in batch updates ([#&#8203;8057](https://github.com/mikro-orm/mikro-orm/issues/8057)) ([f6e5fd4](https://github.com/mikro-orm/mikro-orm/commit/f6e5fd4fac3c5b62d75ea74838c2108b1b7f126f)) - **core:** support version and optimistic locking on nested composite keys ([#&#8203;8064](https://github.com/mikro-orm/mikro-orm/issues/8064)) ([d533e76](https://github.com/mikro-orm/mikro-orm/commit/d533e76fe441ed3f06b5efcbb45407d82eb63ab8)) - **entity-generator:** correctly escape generated string literals and keys ([#&#8203;8048](https://github.com/mikro-orm/mikro-orm/issues/8048)) ([adf2b84](https://github.com/mikro-orm/mikro-orm/commit/adf2b84c069bae7d91ae2e66126db4241d45cf89)) - **entity-generator:** sanitize file names taken from database metadata ([#&#8203;8052](https://github.com/mikro-orm/mikro-orm/issues/8052)) ([4efac39](https://github.com/mikro-orm/mikro-orm/commit/4efac398acb84014a3d0414b2c09fef06bc82afa)) - **libsql:** stop recycling local connections every 10 seconds ([#&#8203;8050](https://github.com/mikro-orm/mikro-orm/issues/8050)) ([bd2a1cf](https://github.com/mikro-orm/mikro-orm/commit/bd2a1cf06d8d0f4823e19c5d6670a8e2be837c24)) - **migrations:** sanitize custom migration names into valid class identifiers ([#&#8203;8053](https://github.com/mikro-orm/mikro-orm/issues/8053)) ([20a3ae2](https://github.com/mikro-orm/mikro-orm/commit/20a3ae258b2592176bc6207204aeb4f9c95b142e)) - **mssql:** execute `create trigger` in its own query batch ([#&#8203;8072](https://github.com/mikro-orm/mikro-orm/issues/8072)) ([5d0420e](https://github.com/mikro-orm/mikro-orm/commit/5d0420edebc27454c09bba22ea7baf637d7c70e0)) - **mssql:** manage table and column comments via extended properties ([#&#8203;8076](https://github.com/mikro-orm/mikro-orm/issues/8076)) ([d579f04](https://github.com/mikro-orm/mikro-orm/commit/d579f04aaf969c876d4630aab1369e369ad1807e)) - **oracledb:** bind every returned column of a multi column property ([#&#8203;8059](https://github.com/mikro-orm/mikro-orm/issues/8059)) ([dc17ec2](https://github.com/mikro-orm/mikro-orm/commit/dc17ec2afe93cb173d89277dc33ed234c2cc7506)) - **oracle:** keep the config user in sync with the pool after `dropDatabase()` ([#&#8203;8043](https://github.com/mikro-orm/mikro-orm/issues/8043)) ([6e1113d](https://github.com/mikro-orm/mikro-orm/commit/6e1113d6334f01ad8ebbc5a846d6249d23d34ecd)) - **oracle:** set the session schema when the connection user differs from `dbName` ([#&#8203;8042](https://github.com/mikro-orm/mikro-orm/issues/8042)) ([3a942d2](https://github.com/mikro-orm/mikro-orm/commit/3a942d22bdc50914e3e4db61f1f8f3f8a22c7c73)), closes [#&#8203;8040](https://github.com/mikro-orm/mikro-orm/issues/8040) - **postgresql:** don't crash the process when the server drops a connection ([#&#8203;8069](https://github.com/mikro-orm/mikro-orm/issues/8069)) ([66d3b1a](https://github.com/mikro-orm/mikro-orm/commit/66d3b1a18979eac676c57755e595f62377566362)) - **sql:** apply column comment changes in a single schema update pass ([#&#8203;8077](https://github.com/mikro-orm/mikro-orm/issues/8077)) ([c48a435](https://github.com/mikro-orm/mikro-orm/commit/c48a435d33113d66db53adf0ae9ff8c5e87c346b)) - **sql:** apply query cancellation strategies inside transactions ([#&#8203;8067](https://github.com/mikro-orm/mikro-orm/issues/8067)) ([11525e3](https://github.com/mikro-orm/mikro-orm/commit/11525e36bb0d3f13921059d64fe1c5ffe4125c36)) - **sql:** compile an empty `$or` to an always-false predicate ([#&#8203;8054](https://github.com/mikro-orm/mikro-orm/issues/8054)) ([0578108](https://github.com/mikro-orm/mikro-orm/commit/057810881d2151355770a2782bb08bd136c80209)) - **sql:** emit valid SQL for negated and empty condition groups ([#&#8203;8060](https://github.com/mikro-orm/mikro-orm/issues/8060)) ([905286b](https://github.com/mikro-orm/mikro-orm/commit/905286b53a4d9234a81f871d1c510e77c8c67e2e)) - **sql:** include composite FK values in the pivot row hash ([#&#8203;8082](https://github.com/mikro-orm/mikro-orm/issues/8082)) ([f2d5a89](https://github.com/mikro-orm/mikro-orm/commit/f2d5a896531a35a0b2a0b361047322fa06ab38bb)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) - **sql:** keep multi line comments intact when grouping schema DDL ([#&#8203;8079](https://github.com/mikro-orm/mikro-orm/issues/8079)) ([b74e332](https://github.com/mikro-orm/mikro-orm/commit/b74e33218f3961e90064e720556f24e4291eead3)) - **sql:** keep multi line trigger bodies stable across schema updates ([#&#8203;8074](https://github.com/mikro-orm/mikro-orm/issues/8074)) ([165ff59](https://github.com/mikro-orm/mikro-orm/commit/165ff591ff4233457f713a74267e173e2c1f5b8f)) - **sql:** keep pivot rows distinct when the fixed order column is not unique ([#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078)) ([63a2c83](https://github.com/mikro-orm/mikro-orm/commit/63a2c8338d6b89c916cd2de5c18d7075fefcf51a)), closes [#&#8203;8075](https://github.com/mikro-orm/mikro-orm/issues/8075) - **sql:** keep polymorphic pivot rows distinct when the fixed order column is not unique ([#&#8203;8085](https://github.com/mikro-orm/mikro-orm/issues/8085)) ([20734f7](https://github.com/mikro-orm/mikro-orm/commit/20734f799da2ae784f911ec81bf9e2fce023c6d1)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) - **sql:** keep the original error when the rollback of a failed transaction also fails ([#&#8203;8068](https://github.com/mikro-orm/mikro-orm/issues/8068)) ([7663639](https://github.com/mikro-orm/mikro-orm/commit/76636397bdff8167c1a1e8ea67d721c553a6976b)) - **sql:** load M:N collections of owners with a nested composite PK ([#&#8203;8080](https://github.com/mikro-orm/mikro-orm/issues/8080)) ([d4a5a33](https://github.com/mikro-orm/mikro-orm/commit/d4a5a33a2c3205c73ee23b96c96833d70dcc3045)) - **sql:** load the owner side of a polymorphic M:N pivot shared by owners of different PK arity ([#&#8203;8084](https://github.com/mikro-orm/mikro-orm/issues/8084)) ([6fbdcc4](https://github.com/mikro-orm/mikro-orm/commit/6fbdcc4a2bf24785bec9ff6c1a0d0305ea65e013)), closes [#&#8203;8081](https://github.com/mikro-orm/mikro-orm/issues/8081) - **sql:** load the owner side of a polymorphic M:N with a composite PK owner ([#&#8203;8081](https://github.com/mikro-orm/mikro-orm/issues/8081)) ([a38cca5](https://github.com/mikro-orm/mikro-orm/commit/a38cca50297083df5847cccd620e7f3c62583262)), closes [#&#8203;8080](https://github.com/mikro-orm/mikro-orm/issues/8080) - **sql:** normalize implicit aggregate aliases and multi word casts ([#&#8203;8058](https://github.com/mikro-orm/mikro-orm/issues/8058)) ([e90c141](https://github.com/mikro-orm/mikro-orm/commit/e90c14175f5f05509d2e028882c80f0eddd24fb3)), closes [#&#8203;8055](https://github.com/mikro-orm/mikro-orm/issues/8055) - **sql:** normalize trigger bodies when generating DDL ([#&#8203;8063](https://github.com/mikro-orm/mikro-orm/issues/8063)) ([32da92f](https://github.com/mikro-orm/mikro-orm/commit/32da92ff4f0d1af47db62a30e82cc4a0d6117839)), closes [#&#8203;8061](https://github.com/mikro-orm/mikro-orm/issues/8061) - **sql:** pass a flat PK array when persisting M:N of a composite PK owner ([#&#8203;8073](https://github.com/mikro-orm/mikro-orm/issues/8073)) ([f88d567](https://github.com/mikro-orm/mikro-orm/commit/f88d567f645a7a19e2848d2c4516b74594e3a08c)) #### [7.1.8](https://github.com/mikro-orm/mikro-orm/compare/v7.1.7...v7.1.8) (2026-07-28) ##### Bug Fixes - **core:** convert custom types when querying composite PK via array form ([#&#8203;8035](https://github.com/mikro-orm/mikro-orm/issues/8035)) ([ba0c4c2](https://github.com/mikro-orm/mikro-orm/commit/ba0c4c23e9eed5ada3aa51687425543198862704)) - **core:** don't let a partially loaded fork entity clobber the parent context ([#&#8203;8036](https://github.com/mikro-orm/mikro-orm/issues/8036)) ([d3e9f1c](https://github.com/mikro-orm/mikro-orm/commit/d3e9f1c7d0e2ee6550c77683effba50d11aba913)) - **core:** fix infinite recursion when flushing a `mapToPk` FK with value `0` ([#&#8203;8004](https://github.com/mikro-orm/mikro-orm/issues/8004)) ([f01fd6f](https://github.com/mikro-orm/mikro-orm/commit/f01fd6faf7cbd7a9e6810015b605f9a29bdc04da)), closes [#&#8203;8003](https://github.com/mikro-orm/mikro-orm/issues/8003) - **core:** key composite primary keys with custom types by their database form ([#&#8203;8029](https://github.com/mikro-orm/mikro-orm/issues/8029)) ([5d582ec](https://github.com/mikro-orm/mikro-orm/commit/5d582ec19b44a25f5c311769817cb9978ef12c34)), closes [#&#8203;8021](https://github.com/mikro-orm/mikro-orm/issues/8021) - **core:** populate 1:m collections of parents with falsy PK values ([#&#8203;8002](https://github.com/mikro-orm/mikro-orm/issues/8002)) ([eaa25d4](https://github.com/mikro-orm/mikro-orm/commit/eaa25d49536422e591d3a5ce1fe5a50b71fa4dba)), closes [#&#8203;8000](https://github.com/mikro-orm/mikro-orm/issues/8000) - **core:** respect custom type conversion in identity map lookups ([#&#8203;8021](https://github.com/mikro-orm/mikro-orm/issues/8021)) ([44d470d](https://github.com/mikro-orm/mikro-orm/commit/44d470d4333c57720b2ffdfda62eeab1eed2fbe8)), closes [#&#8203;8020](https://github.com/mikro-orm/mikro-orm/issues/8020) - **migrations:** respect `skipTables`/`skipViews` when rewriting the snapshot ([#&#8203;8038](https://github.com/mikro-orm/mikro-orm/issues/8038)) ([08e5801](https://github.com/mikro-orm/mikro-orm/commit/08e580114bdb61bc57cb8d8517110b06f83eabd5)), closes [#&#8203;8037](https://github.com/mikro-orm/mikro-orm/issues/8037) - **migrations:** store the create snapshot in the resolved migrations folder ([#&#8203;8027](https://github.com/mikro-orm/mikro-orm/issues/8027)) ([d7a9ea8](https://github.com/mikro-orm/mikro-orm/commit/d7a9ea81a6be5a650201cd80774b4d1489508fae)), closes [#&#8203;8024](https://github.com/mikro-orm/mikro-orm/issues/8024) - **sql:** do not apply collection `where` of non-joined nested relations ([#&#8203;8030](https://github.com/mikro-orm/mikro-orm/issues/8030)) ([f3d48d8](https://github.com/mikro-orm/mikro-orm/commit/f3d48d89ccb50da48039e37c2865586e830fae60)), closes [#&#8203;8022](https://github.com/mikro-orm/mikro-orm/issues/8022) - **sql:** order introspection queries so generated schema diffs are stable ([#&#8203;8031](https://github.com/mikro-orm/mikro-orm/issues/8031)) ([25d956b](https://github.com/mikro-orm/mikro-orm/commit/25d956b3284ff40e3d7c5fd2bf527f5521f5d2ae)) - **sql:** preserve query builder field types across joins and CTEs ([#&#8203;8005](https://github.com/mikro-orm/mikro-orm/issues/8005)) ([b8a5bea](https://github.com/mikro-orm/mikro-orm/commit/b8a5bea56b5786917d83eab6f31304d243283515)) #### [7.1.7](https://github.com/mikro-orm/mikro-orm/compare/v7.1.6...v7.1.7) (2026-07-17) ##### Bug Fixes - **core:** ignore special object keys in `assign()` ([#&#8203;7998](https://github.com/mikro-orm/mikro-orm/issues/7998)) ([6c65ffb](https://github.com/mikro-orm/mikro-orm/commit/6c65ffb10ef2387adaa202121dd0ba1ca644c018)) - **core:** support same-named nested embeddables with different props in polymorphic embeddables ([#&#8203;7986](https://github.com/mikro-orm/mikro-orm/issues/7986)) ([c926fd8](https://github.com/mikro-orm/mikro-orm/commit/c926fd86f7dd93f060e8a77ebcdf40d889009dcd)), closes [#&#8203;7983](https://github.com/mikro-orm/mikro-orm/issues/7983) - **mariadb:** keep JSON columns as strings on mysql2 3.23+ ([#&#8203;7994](https://github.com/mikro-orm/mikro-orm/issues/7994)) ([0154130](https://github.com/mikro-orm/mikro-orm/commit/015413015b465b7d3f4a65d1b7a58f33f1da0f5b)), closes [#&#8203;7981](https://github.com/mikro-orm/mikro-orm/issues/7981) - **mssql:** map FK, CHECK, PK/unique, deadlock and lock-timeout errors to driver exceptions ([#&#8203;7959](https://github.com/mikro-orm/mikro-orm/issues/7959)) ([adc52fc](https://github.com/mikro-orm/mikro-orm/commit/adc52fced854c89b6f6496b4c356f1910379d0c3)) - **mssql:** retry create database when the model database is locked ([#&#8203;7985](https://github.com/mikro-orm/mikro-orm/issues/7985)) ([f528107](https://github.com/mikro-orm/mikro-orm/commit/f52810710c9fdea1d3e10cfcc80f9c12257edeb0)) - **postgres:** make check introspection columnName deterministic ([#&#8203;7992](https://github.com/mikro-orm/mikro-orm/issues/7992)) ([ab14f97](https://github.com/mikro-orm/mikro-orm/commit/ab14f9767a6bd1fe9347d5722f51515c997855e8)), closes [#&#8203;7991](https://github.com/mikro-orm/mikro-orm/issues/7991) - **sql:** validate order by direction against known values ([#&#8203;7996](https://github.com/mikro-orm/mikro-orm/issues/7996)) ([3aba926](https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5)) #### [7.1.6](https://github.com/mikro-orm/mikro-orm/compare/v7.1.5...v7.1.6) (2026-07-13) ##### Bug Fixes - **core:** carry merged ancestor builders so Kysely types span multi-level `extends` ([#&#8203;7939](https://github.com/mikro-orm/mikro-orm/issues/7939)) ([3c56082](https://github.com/mikro-orm/mikro-orm/commit/3c560825f8123d277c1d493490e2f26dac66e0f6)), closes [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7937](https://github.com/mikro-orm/mikro-orm/issues/7937) - **core:** ignore process-local metadata `_id` when loading from cache ([#&#8203;7978](https://github.com/mikro-orm/mikro-orm/issues/7978)) ([4777f9d](https://github.com/mikro-orm/mikro-orm/commit/4777f9dc0703fe4736ad3e9b466b37d577f8cf77)), closes [#&#8203;7975](https://github.com/mikro-orm/mikro-orm/issues/7975) - **core:** infer `string` for `time` type properties instead of `any` ([#&#8203;7961](https://github.com/mikro-orm/mikro-orm/issues/7961)) ([486eff8](https://github.com/mikro-orm/mikro-orm/commit/486eff8e0cdc218e97b038f920e1579e3beb055e)) - **core:** keep custom-typed PK snapshots in DB-form to avoid spurious updates ([#&#8203;7973](https://github.com/mikro-orm/mikro-orm/issues/7973)) ([393a7f3](https://github.com/mikro-orm/mikro-orm/commit/393a7f3ab4f2eaef2cc9148a8507bb05ebf63279)), closes [#&#8203;7966](https://github.com/mikro-orm/mikro-orm/issues/7966) - **core:** make entity type inference robust under TS 7 stable type ordering ([#&#8203;7948](https://github.com/mikro-orm/mikro-orm/issues/7948)) ([a5d1827](https://github.com/mikro-orm/mikro-orm/commit/a5d18271d55b398a63d972cfce8a4874374107c8)), closes [microsoft/typescript-go#4464](https://github.com/microsoft/typescript-go/issues/4464) - **core:** support `@Check()` on class level with TC39 decorators ([#&#8203;7982](https://github.com/mikro-orm/mikro-orm/issues/7982)) ([23e47d9](https://github.com/mikro-orm/mikro-orm/commit/23e47d9075e1cf04f2a1332164af3d9a293d691b)) - **mysql:** treat (current\_date) and curdate() date defaults as equal ([#&#8203;7956](https://github.com/mikro-orm/mikro-orm/issues/7956)) ([441eaa1](https://github.com/mikro-orm/mikro-orm/commit/441eaa110aeeb0920bb6ac40854802ab9ee7b78b)) - **oracle:** keep FK schema owner case consistent with columns and tables ([#&#8203;7964](https://github.com/mikro-orm/mikro-orm/issues/7964)) ([ad776b7](https://github.com/mikro-orm/mikro-orm/commit/ad776b7d971f3e868128dfd33e9c198bc9973515)), closes [#&#8203;7960](https://github.com/mikro-orm/mikro-orm/issues/7960) - **sql:** avoid phantom changeset for inline embeddable loaded via joined strategy ([#&#8203;7971](https://github.com/mikro-orm/mikro-orm/issues/7971)) ([9c7612a](https://github.com/mikro-orm/mikro-orm/commit/9c7612afd371964d55d01e741bb058137ca331b8)), closes [#&#8203;7954](https://github.com/mikro-orm/mikro-orm/issues/7954) - **sql:** do not propagate TPT parent check constraints to child tables ([#&#8203;7944](https://github.com/mikro-orm/mikro-orm/issues/7944)) ([0f34374](https://github.com/mikro-orm/mikro-orm/commit/0f34374914211ade1ccb60acd2e01b46fb96fe99)), closes [#&#8203;7714](https://github.com/mikro-orm/mikro-orm/issues/7714) [#&#8203;7935](https://github.com/mikro-orm/mikro-orm/issues/7935) - **sql:** expose columns inherited via `extends` in `getKysely()` table type ([#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938)) ([ebaa2be](https://github.com/mikro-orm/mikro-orm/commit/ebaa2be3428bee4d269f51154ab11bfc16ae5656)), closes [#&#8203;7937](https://github.com/mikro-orm/mikro-orm/issues/7937) - **sql:** infer array columns as arrays in Kysely table types ([#&#8203;7972](https://github.com/mikro-orm/mikro-orm/issues/7972)) ([2b79554](https://github.com/mikro-orm/mikro-orm/commit/2b79554009180f247331218a8cab9480e71dd19c)), closes [#&#8203;7967](https://github.com/mikro-orm/mikro-orm/issues/7967) - **sql:** keep non-lazy `@Formula` out of partial-index predicate rendering ([#&#8203;7947](https://github.com/mikro-orm/mikro-orm/issues/7947)) ([368123d](https://github.com/mikro-orm/mikro-orm/commit/368123d8b05f3ae9ccaa0cbd4c7811b46570d6a9)), closes [#&#8203;7946](https://github.com/mikro-orm/mikro-orm/issues/7946) - **sql:** keep nullable relation FK columns nullable in class-based Kysely inference ([#&#8203;7965](https://github.com/mikro-orm/mikro-orm/issues/7965)) ([fde9258](https://github.com/mikro-orm/mikro-orm/commit/fde9258bedf8315a4f842b776241eeb8b50295a0)), closes [#&#8203;7962](https://github.com/mikro-orm/mikro-orm/issues/7962) - **sql:** stop schema diff churning on generated columns with underscore literals ([#&#8203;7955](https://github.com/mikro-orm/mikro-orm/issues/7955)) ([6c9f0a6](https://github.com/mikro-orm/mikro-orm/commit/6c9f0a6598a6bcd4f6d34b62242494199c7407a4)) - **sql:** support orderBy on persist(false) virtual fields with pagination ([#&#8203;7979](https://github.com/mikro-orm/mikro-orm/issues/7979)) ([0454aea](https://github.com/mikro-orm/mikro-orm/commit/0454aea6509e4faac83a5280d7325904f62a917f)), closes [#&#8203;7932](https://github.com/mikro-orm/mikro-orm/issues/7932) #### [7.1.5](https://github.com/mikro-orm/mikro-orm/compare/v7.1.4...v7.1.5) (2026-06-26) ##### Bug Fixes - **cli:** discovery:export casts the DriverEntityManager to the right type ([#&#8203;7873](https://github.com/mikro-orm/mikro-orm/issues/7873)) ([b4fa4de](https://github.com/mikro-orm/mikro-orm/commit/b4fa4de0e018c19b952a6d53205af9fcf905a9a6)) - **core:** apply populateOrderBy to select-in relations without leaking into M:N pivots ([#&#8203;7915](https://github.com/mikro-orm/mikro-orm/issues/7915)) ([03bb827](https://github.com/mikro-orm/mikro-orm/commit/03bb8271624185da140a4b34acbe5d52885b400e)), closes [#&#8203;7910](https://github.com/mikro-orm/mikro-orm/issues/7910) - **core:** avoid evaluating getters when snapshotting unhydrated references ([#&#8203;7919](https://github.com/mikro-orm/mikro-orm/issues/7919)) ([528789b](https://github.com/mikro-orm/mikro-orm/commit/528789b69e1201800baac87073c388d5bcc7573e)), closes [#&#8203;7918](https://github.com/mikro-orm/mikro-orm/issues/7918) - **core:** enable RequestContext to use almost all fork options ([#&#8203;7920](https://github.com/mikro-orm/mikro-orm/issues/7920)) ([021457f](https://github.com/mikro-orm/mikro-orm/commit/021457fabd88bc86b02d581fd7a681953f3fe844)) - **core:** keep async-clonable resources by reference in config clone ([#&#8203;7887](https://github.com/mikro-orm/mikro-orm/issues/7887)) ([57f0b2c](https://github.com/mikro-orm/mikro-orm/commit/57f0b2cb8ef935c5c4ce8895cf4d598112fd3b2d)), closes [#&#8203;7862](https://github.com/mikro-orm/mikro-orm/issues/7862) [#&#8203;7862](https://github.com/mikro-orm/mikro-orm/issues/7862) [#&#8203;7870](https://github.com/mikro-orm/mikro-orm/issues/7870) [#&#8203;7862](https://github.com/mikro-orm/mikro-orm/issues/7862) - **core:** key change set groups by metadata id to avoid dropped writes ([#&#8203;7904](https://github.com/mikro-orm/mikro-orm/issues/7904)) ([243247d](https://github.com/mikro-orm/mikro-orm/commit/243247dc5e156ccb23032cf00e481b59a1f6744b)), closes [#&#8203;7511](https://github.com/mikro-orm/mikro-orm/issues/7511) [#&#8203;7903](https://github.com/mikro-orm/mikro-orm/issues/7903) - **core:** skip view entities in schema.clear() ([#&#8203;7880](https://github.com/mikro-orm/mikro-orm/issues/7880)) ([3b762fe](https://github.com/mikro-orm/mikro-orm/commit/3b762fe0bb82d45f1838355e17c3d553ea7c19d4)), closes [#&#8203;7874](https://github.com/mikro-orm/mikro-orm/issues/7874) - **core:** stop STI subtype property leaking to siblings when shared by 2+ children ([#&#8203;7923](https://github.com/mikro-orm/mikro-orm/issues/7923)) ([647b28c](https://github.com/mikro-orm/mikro-orm/commit/647b28c35db1f9000d8bb73823388ce88a3ec77e)), closes [#&#8203;7922](https://github.com/mikro-orm/mikro-orm/issues/7922) - **migrations:** restore triggers when reading the migration snapshot ([#&#8203;7882](https://github.com/mikro-orm/mikro-orm/issues/7882)) ([5e68e04](https://github.com/mikro-orm/mikro-orm/commit/5e68e04bc95b578eda0cb1a11a607256ccca5d05)), closes [#&#8203;7878](https://github.com/mikro-orm/mikro-orm/issues/7878) - **mssql:** return result sets from callRoutine without OUT params ([#&#8203;7879](https://github.com/mikro-orm/mikro-orm/issues/7879)) ([fbe7fd3](https://github.com/mikro-orm/mikro-orm/commit/fbe7fd317285c82786ab484a53b0c8fb2b3c0a34)), closes [#&#8203;7872](https://github.com/mikro-orm/mikro-orm/issues/7872) - **pglite:** make createDatabase/dropDatabase true no-ops in single-database mode ([#&#8203;7885](https://github.com/mikro-orm/mikro-orm/issues/7885)) ([8248a16](https://github.com/mikro-orm/mikro-orm/commit/8248a16460d260354c6e33957c6e6e4edccbe1af)) - **pglite:** really close in-memory instances on orm.close() ([#&#8203;7870](https://github.com/mikro-orm/mikro-orm/issues/7870)) ([a1a4d1d](https://github.com/mikro-orm/mikro-orm/commit/a1a4d1dced26880fb3bc4fbca1715b9ee54689a3)), closes [#&#8203;7862](https://github.com/mikro-orm/mikro-orm/issues/7862) - **postgres:** handle stored routines with unnamed parameters ([#&#8203;7917](https://github.com/mikro-orm/mikro-orm/issues/7917)) ([6302833](https://github.com/mikro-orm/mikro-orm/commit/6302833dab3489ceb3459d8e9af9561a5670885e)), closes [#&#8203;7905](https://github.com/mikro-orm/mikro-orm/issues/7905) - **sql:** derive bulk insert columns from all rows, not just the first ([#&#8203;7884](https://github.com/mikro-orm/mikro-orm/issues/7884)) ([4abfb52](https://github.com/mikro-orm/mikro-orm/commit/4abfb52dce8559090c3bbb9b1a34e690874895c4)), closes [#&#8203;7871](https://github.com/mikro-orm/mikro-orm/issues/7871) - **sql:** keep nested collection populateOrderBy by a to-one relation field under joined strategy ([#&#8203;7916](https://github.com/mikro-orm/mikro-orm/issues/7916)) ([e81d01b](https://github.com/mikro-orm/mikro-orm/commit/e81d01bf639a29d75e5dfc27ea6a663e86b39098)), closes [#&#8203;7911](https://github.com/mikro-orm/mikro-orm/issues/7911) - **sql:** resolve target entity schema in nested collection operators ([#&#8203;7895](https://github.com/mikro-orm/mikro-orm/issues/7895)) ([5be97fb](https://github.com/mikro-orm/mikro-orm/commit/5be97fb7ca11910582369d533df838e5031d1ef0)), closes [#&#8203;7894](https://github.com/mikro-orm/mikro-orm/issues/7894) - **sql:** serialize array operators as a single literal in JOIN-ON conditions ([#&#8203;7900](https://github.com/mikro-orm/mikro-orm/issues/7900)) ([c938c7a](https://github.com/mikro-orm/mikro-orm/commit/c938c7ad229a50330d60f3e06f79ba781808d519)), closes [#&#8203;7899](https://github.com/mikro-orm/mikro-orm/issues/7899) - **sql:** strip comments from view definitions in schema generator ([#&#8203;7883](https://github.com/mikro-orm/mikro-orm/issues/7883)) ([d56826b](https://github.com/mikro-orm/mikro-orm/commit/d56826b2fdd754ff197d35f9f7b4ffee24e364c6)), closes [#&#8203;7875](https://github.com/mikro-orm/mikro-orm/issues/7875) #### [7.1.4](https://github.com/mikro-orm/mikro-orm/compare/v7.1.3...v7.1.4) (2026-06-06) ##### Bug Fixes - **core:** allow array return in onCreate/onUpdate on embedded/scalar arrays ([#&#8203;7848](https://github.com/mikro-orm/mikro-orm/issues/7848)) ([b7e5232](https://github.com/mikro-orm/mikro-orm/commit/b7e52326492f3f5e5dfb7a2aa68852229d552941)), closes [#&#8203;7847](https://github.com/mikro-orm/mikro-orm/issues/7847) - **core:** avoid spurious updates for object embeddables with undeclared keys ([#&#8203;7823](https://github.com/mikro-orm/mikro-orm/issues/7823)) ([6b017d9](https://github.com/mikro-orm/mikro-orm/commit/6b017d925a30fe6cfd42fcff7e39f798eb5b0e6a)), closes [#&#8203;7821](https://github.com/mikro-orm/mikro-orm/issues/7821) [#&#8203;7821](https://github.com/mikro-orm/mikro-orm/issues/7821) - **core:** avoid stack overflow in IdentityMap.keys()/values() for large maps ([#&#8203;7857](https://github.com/mikro-orm/mikro-orm/issues/7857)) ([8adf861](https://github.com/mikro-orm/mikro-orm/commit/8adf86178ef5841f9191ca29a4eac5f0e7034d18)) - **core:** keep STI primary key NOT NULL when a child re-declares it ([#&#8203;7828](https://github.com/mikro-orm/mikro-orm/issues/7828)) ([31a12bb](https://github.com/mikro-orm/mikro-orm/commit/31a12bb52a41d7b32604724814762a9e9f3bb2f0)), closes [#&#8203;7826](https://github.com/mikro-orm/mikro-orm/issues/7826) - **core:** populate polymorphic embedded arrays loaded via a relation ([#&#8203;7846](https://github.com/mikro-orm/mikro-orm/issues/7846)) ([18f9b58](https://github.com/mikro-orm/mikro-orm/commit/18f9b58225e2e6c26adec0f81dbb59c5500f1ff7)), closes [#&#8203;7845](https://github.com/mikro-orm/mikro-orm/issues/7845) - **core:** use owner targetKey for inverse collection loads ([#&#8203;7844](https://github.com/mikro-orm/mikro-orm/issues/7844)) ([8d46fe9](https://github.com/mikro-orm/mikro-orm/commit/8d46fe9e0440d01d68048ebb190a17e92823919f)), closes [#&#8203;7842](https://github.com/mikro-orm/mikro-orm/issues/7842) [#&#8203;7842](https://github.com/mikro-orm/mikro-orm/issues/7842) - **postgres:** don't mis-detect JSON operator checks as enums ([#&#8203;7829](https://github.com/mikro-orm/mikro-orm/issues/7829)) ([dee3d3a](https://github.com/mikro-orm/mikro-orm/commit/dee3d3ab5478276fc99ce782d403edb2d205472e)), closes [#&#8203;7822](https://github.com/mikro-orm/mikro-orm/issues/7822) - **postgres:** introspect native enums with no members ([#&#8203;7830](https://github.com/mikro-orm/mikro-orm/issues/7830)) ([aab9970](https://github.com/mikro-orm/mikro-orm/commit/aab9970ab1aa076a10e70edcd4f63e170767e883)), closes [#&#8203;7825](https://github.com/mikro-orm/mikro-orm/issues/7825) - **postgres:** unwrap single-paren CHECK shell for bare boolean CASE bodies ([#&#8203;7827](https://github.com/mikro-orm/mikro-orm/issues/7827)) ([52ef9e9](https://github.com/mikro-orm/mikro-orm/commit/52ef9e925bbec59f84c821f2bf269e9e9beb97fb)), closes [#&#8203;7824](https://github.com/mikro-orm/mikro-orm/issues/7824) - **sql:** emit column name for kysely on-create/on-update hook injection ([#&#8203;7837](https://github.com/mikro-orm/mikro-orm/issues/7837)) ([f4135f7](https://github.com/mikro-orm/mikro-orm/commit/f4135f72f8a948982f0245123f70d6b23ee24324)), closes [#&#8203;7836](https://github.com/mikro-orm/mikro-orm/issues/7836) ##### Features - **cli:** added searchConfiguration() to analyze config file for context ([#&#8203;7834](https://github.com/mikro-orm/mikro-orm/issues/7834)) ([8a1066b](https://github.com/mikro-orm/mikro-orm/commit/8a1066bbd79b89a045f99d1ef00d7dda739c8ac6)) - **pglite:** support named databases inside a cluster ([#&#8203;7854](https://github.com/mikro-orm/mikro-orm/issues/7854)) ([2038f07](https://github.com/mikro-orm/mikro-orm/commit/2038f075e863a7e56c7e18a3d796fe498ac5a42f)), closes [#&#8203;7852](https://github.com/mikro-orm/mikro-orm/issues/7852) #### [7.1.3](https://github.com/mikro-orm/mikro-orm/compare/v7.1.2...v7.1.3) (2026-05-31) ##### Bug Fixes - **core:** emit composite unique for OneToOne across 3+ STI variants ([#&#8203;7806](https://github.com/mikro-orm/mikro-orm/issues/7806)) ([ae89033](https://github.com/mikro-orm/mikro-orm/commit/ae890330cc5284d25ba3f609ea71425ab57dd59f)), closes [#&#8203;7805](https://github.com/mikro-orm/mikro-orm/issues/7805) - **core:** support `mapToPk` scalar typing with ES decorators ([#&#8203;7818](https://github.com/mikro-orm/mikro-orm/issues/7818)) ([9b8b4e4](https://github.com/mikro-orm/mikro-orm/commit/9b8b4e42c2ad86dc632d044f568e6a55043fc9f3)), closes [#&#8203;7817](https://github.com/mikro-orm/mikro-orm/issues/7817) ##### Features - **core:** support onReserveConnection across SQL drivers ([#&#8203;7815](https://github.com/mikro-orm/mikro-orm/issues/7815)) ([166c966](https://github.com/mikro-orm/mikro-orm/commit/166c9669c4668374d0a726e03a57390e3897000c)), closes [/github.com/mikro-orm/mikro-orm/discussions/6137#discussioncomment-16625910](https://github.com//github.com/mikro-orm/mikro-orm/discussions/6137/issues/discussioncomment-16625910) - **postgres:** support adding and changing partitioning on existing tables ([#&#8203;7816](https://github.com/mikro-orm/mikro-orm/issues/7816)) ([db738bd](https://github.com/mikro-orm/mikro-orm/commit/db738bde917d3dffb1f3c900c59e126dc0d6c80b)) - **schema:** add `ignoreRoutines` option to leave routines unmanaged ([#&#8203;7810](https://github.com/mikro-orm/mikro-orm/issues/7810)) ([84e2ed3](https://github.com/mikro-orm/mikro-orm/commit/84e2ed3f305ad110c041e695609417177ff3802a)) - **schema:** add `ignoreTriggers` option and skip trigger drops in safe mode ([#&#8203;7809](https://github.com/mikro-orm/mikro-orm/issues/7809)) ([cc35d88](https://github.com/mikro-orm/mikro-orm/commit/cc35d8889e867ea55d815d1fc50265ff8c8fe6a0)) #### [7.1.2](https://github.com/mikro-orm/mikro-orm/compare/v7.1.1...v7.1.2) (2026-05-29) ##### Bug Fixes - **cli:** allow `discovery:export` to generate an empty list of entities ([#&#8203;7795](https://github.com/mikro-orm/mikro-orm/issues/7795)) ([604f109](https://github.com/mikro-orm/mikro-orm/commit/604f1094a98a80f1b59de6ed78b077d752c6f154)) - **core:** avoid circular type in defineEntity index/unique `where` with self-referencing relations ([#&#8203;7784](https://github.com/mikro-orm/mikro-orm/issues/7784)) ([82ad42a](https://github.com/mikro-orm/mikro-orm/commit/82ad42a6ba21002cf3f4d1467e5ec1a76d7c3cbf)), closes [#&#8203;7440](https://github.com/mikro-orm/mikro-orm/issues/7440) - **core:** preserve sibling conditions next to `$and`/`$or` on relation filters ([#&#8203;7790](https://github.com/mikro-orm/mikro-orm/issues/7790)) ([2b59672](https://github.com/mikro-orm/mikro-orm/commit/2b596729ad8cdb8c467c559f8b6b48bfa2a4f713)) - **core:** reload non-merged columns after upsert with a raw conflict target ([#&#8203;7800](https://github.com/mikro-orm/mikro-orm/issues/7800)) ([1366074](https://github.com/mikro-orm/mikro-orm/commit/13660743d5ebf85f5e2907e62bad7dd3f0fedcd8)) - **migrations:** stop migrator.up() from churning a snapshot that matches the DB ([#&#8203;7804](https://github.com/mikro-orm/mikro-orm/issues/7804)) ([3f1297c](https://github.com/mikro-orm/mikro-orm/commit/3f1297c60fce63e5e452225421a9b2e63b91b3a7)), closes [#&#8203;7803](https://github.com/mikro-orm/mikro-orm/issues/7803) [#&#8203;7798](https://github.com/mikro-orm/mikro-orm/issues/7798) [#&#8203;7798](https://github.com/mikro-orm/mikro-orm/issues/7798) - **sql:** expose raw aliases in QueryBuilder execute() result type ([#&#8203;7785](https://github.com/mikro-orm/mikro-orm/issues/7785)) ([2944703](https://github.com/mikro-orm/mikro-orm/commit/29447039532eea662e32c222a382308a744d6b6e)) - **sql:** handle scalar PK in joined mapping of composite-FK relations ([#&#8203;7802](https://github.com/mikro-orm/mikro-orm/issues/7802)) ([88fae8e](https://github.com/mikro-orm/mikro-orm/commit/88fae8ea975e154bf62e17694a5dd53d8685f60d)), closes [#&#8203;7801](https://github.com/mikro-orm/mikro-orm/issues/7801) - **sql:** stabilize MySQL snapshot serialization for decimal/text/extra/comment ([#&#8203;7797](https://github.com/mikro-orm/mikro-orm/issues/7797)) ([184cfde](https://github.com/mikro-orm/mikro-orm/commit/184cfde5c581e31379b69a391c3af80baeb2428e)), closes [#&#8203;7235](https://github.com/mikro-orm/mikro-orm/issues/7235) [#&#8203;7608](https://github.com/mikro-orm/mikro-orm/issues/7608) [#&#8203;7796](https://github.com/mikro-orm/mikro-orm/issues/7796) - **sql:** stop spurious Postgres schema diff on geometry typmod and truncated check names ([#&#8203;7803](https://github.com/mikro-orm/mikro-orm/issues/7803)) ([a972992](https://github.com/mikro-orm/mikro-orm/commit/a972992cc93df264488adaf19efa60a380a3a9a3)), closes [#&#8203;7798](https://github.com/mikro-orm/mikro-orm/issues/7798) [#&#8203;7798](https://github.com/mikro-orm/mikro-orm/issues/7798) - **sql:** stop sqlite snapshot flip on table/column comments ([#&#8203;7799](https://github.com/mikro-orm/mikro-orm/issues/7799)) ([bac9210](https://github.com/mikro-orm/mikro-orm/commit/bac9210e3afc42ad29c53ce9d44b45da0c2dd5ca)), closes [#&#8203;7798](https://github.com/mikro-orm/mikro-orm/issues/7798) ##### Features - **postgres:** support `EXCLUDE` constraints via `@Check` ([#&#8203;7789](https://github.com/mikro-orm/mikro-orm/issues/7789)) ([bcfb0cd](https://github.com/mikro-orm/mikro-orm/commit/bcfb0cd455cb78f72b9f3b9103fa9d7959c6753d)), closes [#&#8203;7787](https://github.com/mikro-orm/mikro-orm/issues/7787) #### [7.1.1](https://github.com/mikro-orm/mikro-orm/compare/v7.1.0...v7.1.1) (2026-05-22) ##### Bug Fixes - **cli:** skip local-dependency check under Deno ([#&#8203;7767](https://github.com/mikro-orm/mikro-orm/issues/7767)) ([c27c211](https://github.com/mikro-orm/mikro-orm/commit/c27c2119ffb87f66b41d9ade761b185fb6f402db)), closes [#&#8203;7766](https://github.com/mikro-orm/mikro-orm/issues/7766) - **core:** reload suppressed entities from partially-suppressed upsertMany ([#&#8203;7779](https://github.com/mikro-orm/mikro-orm/issues/7779)) ([36eaff3](https://github.com/mikro-orm/mikro-orm/commit/36eaff3c7fac9ca7e351acaf71ad183b2e13ab76)), closes [#&#8203;7775](https://github.com/mikro-orm/mikro-orm/issues/7775) - **core:** skip PK collapse when composite FK doesn't align with target PK ([#&#8203;7765](https://github.com/mikro-orm/mikro-orm/issues/7765)) ([fce1cc6](https://github.com/mikro-orm/mikro-orm/commit/fce1cc6d97cb75fd215ab8b7b0410cafdf66a81f)), closes [#&#8203;7764](https://github.com/mikro-orm/mikro-orm/issues/7764) - **migrations:** preserve partial unique index `where` predicate in snapshot ([#&#8203;7778](https://github.com/mikro-orm/mikro-orm/issues/7778)) ([5616c3d](https://github.com/mikro-orm/mikro-orm/commit/5616c3dace1006f90887b1fb3f19232c7599faab)), closes [#&#8203;7773](https://github.com/mikro-orm/mikro-orm/issues/7773) - **postgres:** recast column default when changing array element type ([#&#8203;7769](https://github.com/mikro-orm/mikro-orm/issues/7769)) ([e122c20](https://github.com/mikro-orm/mikro-orm/commit/e122c2005a211e0a0b2bc5a44464cf4bb1ee233a)) - **schema:** detect removed default on boolean columns ([#&#8203;7777](https://github.com/mikro-orm/mikro-orm/issues/7777)) ([c0faca0](https://github.com/mikro-orm/mikro-orm/commit/c0faca002b65c4e4f1a7b29a0acdfd8c8bbdbc86)), closes [#&#8203;7774](https://github.com/mikro-orm/mikro-orm/issues/7774) - **seeder:** widen `Factory.model` type to `EntityName<T>` ([#&#8203;7776](https://github.com/mikro-orm/mikro-orm/issues/7776)) ([878078c](https://github.com/mikro-orm/mikro-orm/commit/878078c92e5a7d362d7584ccf194b4ef009c4df1)), closes [#&#8203;7768](https://github.com/mikro-orm/mikro-orm/issues/7768) ### [`v7.1.15`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7115-2026-09-03) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.14...v7.1.15) ##### Bug Fixes - **core:** apply TPT concurrency check only to the table that declares it ([#&#8203;8228](https://github.com/mikro-orm/mikro-orm/issues/8228)) ([9d47084](https://github.com/mikro-orm/mikro-orm/commit/9d47084ed0c64487431a1ee1e34f9529bc413257)), closes [#&#8203;8227](https://github.com/mikro-orm/mikro-orm/issues/8227) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) - **core:** apply TPT version property only to the table that declares it ([#&#8203;8227](https://github.com/mikro-orm/mikro-orm/issues/8227)) ([8ee0365](https://github.com/mikro-orm/mikro-orm/commit/8ee036519466e500c953a4fa96ec53d2fde900e2)), closes [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) - **core:** escape entity property names in generated hydration/comparison code ([#&#8203;8221](https://github.com/mikro-orm/mikro-orm/issues/8221)) ([b01c17d](https://github.com/mikro-orm/mikro-orm/commit/b01c17d8c9590b9f3bc7534dc5d198072812b226)) - **core:** infer `serializer` callback value from relation kind in `defineEntity` ([#&#8203;8215](https://github.com/mikro-orm/mikro-orm/issues/8215)) ([9631464](https://github.com/mikro-orm/mikro-orm/commit/963146430578325920687e1341ece8cc245a5d5b)), closes [#&#8203;8214](https://github.com/mikro-orm/mikro-orm/issues/8214) - **core:** resolve user-class lookups by class reference instead of class name ([#&#8203;8209](https://github.com/mikro-orm/mikro-orm/issues/8209)) ([2431265](https://github.com/mikro-orm/mikro-orm/commit/2431265f11baafee4afc8c1e19c89cf180c0345f)), closes [#&#8203;8208](https://github.com/mikro-orm/mikro-orm/issues/8208) - **core:** support polymorphic relations inside embeddables ([#&#8203;8219](https://github.com/mikro-orm/mikro-orm/issues/8219)) ([69ed8f8](https://github.com/mikro-orm/mikro-orm/commit/69ed8f816e887067d1ea8de4c3d894b7751b1056)), closes [#&#8203;8218](https://github.com/mikro-orm/mikro-orm/issues/8218) [#&#8203;8217](https://github.com/mikro-orm/mikro-orm/issues/8217) - **sql:** join TPT parent tables for relations targeting a sub-class ([#&#8203;8233](https://github.com/mikro-orm/mikro-orm/issues/8233)) ([a7e1521](https://github.com/mikro-orm/mikro-orm/commit/a7e1521d7f808e8af9311a29d0a2c2da51045797)), closes [#&#8203;8231](https://github.com/mikro-orm/mikro-orm/issues/8231) - **sql:** keep relation filters within their own join branch ([#&#8203;8212](https://github.com/mikro-orm/mikro-orm/issues/8212)) ([d5feeff](https://github.com/mikro-orm/mikro-orm/commit/d5feeffefd690e998d45753cbd5e97a9d1dcc133)), closes [#&#8203;8210](https://github.com/mikro-orm/mikro-orm/issues/8210) - **sql:** prevent endless loop when entity filters form a relation cycle ([#&#8203;8213](https://github.com/mikro-orm/mikro-orm/issues/8213)) ([f30ead9](https://github.com/mikro-orm/mikro-orm/commit/f30ead943a06612d41c9c38edf3ff33d3c018fc8)), closes [#&#8203;8211](https://github.com/mikro-orm/mikro-orm/issues/8211) - **sql:** support upsert for TPT entities ([#&#8203;8229](https://github.com/mikro-orm/mikro-orm/issues/8229)) ([eafda32](https://github.com/mikro-orm/mikro-orm/commit/eafda3243dafba02d79e743b1548bd7077c1a900)), closes [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) [#&#8203;8226](https://github.com/mikro-orm/mikro-orm/issues/8226) ### [`v7.1.14`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7114-2026-08-26) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.13...v7.1.14) ##### Bug Fixes - **core:** don't double-wrap `orderBy` in M:N dataloader batch load ([#&#8203;8194](https://github.com/mikro-orm/mikro-orm/issues/8194)) ([20aa5a8](https://github.com/mikro-orm/mikro-orm/commit/20aa5a80c551ef7f36e88f3e5ef2ec080bff48a5)), closes [#&#8203;8193](https://github.com/mikro-orm/mikro-orm/issues/8193) - **core:** don't require the discriminator value when creating an STI entity ([#&#8203;8201](https://github.com/mikro-orm/mikro-orm/issues/8201)) ([2b0ca9b](https://github.com/mikro-orm/mikro-orm/commit/2b0ca9b1635401b797b96e077211e54a2034aa10)), closes [#&#8203;7677](https://github.com/mikro-orm/mikro-orm/issues/7677) [#&#8203;8200](https://github.com/mikro-orm/mikro-orm/issues/8200) - **core:** evict referrers holding a removed entity in their primary key ([#&#8203;8205](https://github.com/mikro-orm/mikro-orm/issues/8205)) ([16d80a9](https://github.com/mikro-orm/mikro-orm/commit/16d80a9b784f01f0ab060e6c0331728dcc420377)), closes [#&#8203;8203](https://github.com/mikro-orm/mikro-orm/issues/8203) - **core:** infer primary key from plain class base in `defineEntity` ([#&#8203;8207](https://github.com/mikro-orm/mikro-orm/issues/8207)) ([7762f42](https://github.com/mikro-orm/mikro-orm/commit/7762f42e9aa2c4babb28c38066221f27948e43ff)) - **core:** respect explicit join alias in JSON property conditions ([#&#8203;8195](https://github.com/mikro-orm/mikro-orm/issues/8195)) ([16a147c](https://github.com/mikro-orm/mikro-orm/commit/16a147c16c86727ff36470c96086a443aa0e3e70)), closes [#&#8203;8192](https://github.com/mikro-orm/mikro-orm/issues/8192) - **postgres:** strip array-typed casts cleanly when recovering check constraints ([#&#8203;8198](https://github.com/mikro-orm/mikro-orm/issues/8198)) ([2b3d9c3](https://github.com/mikro-orm/mikro-orm/commit/2b3d9c33f2d805d827af44771ea34a7691cbf240)), closes [#&#8203;8197](https://github.com/mikro-orm/mikro-orm/issues/8197) - **sql:** keep row-value tuples in `$in` on a `raw()` key ([#&#8203;8202](https://github.com/mikro-orm/mikro-orm/issues/8202)) ([7c2e382](https://github.com/mikro-orm/mikro-orm/commit/7c2e38250cc51845fe1bfe432b0ced8995f9c95b)) - **sql:** skip trigger diff when only one side uses `expression` ([#&#8203;8191](https://github.com/mikro-orm/mikro-orm/issues/8191)) ([e486d39](https://github.com/mikro-orm/mikro-orm/commit/e486d39daf8f2ff8a0becd7756339e03adef5def)), closes [#&#8203;8190](https://github.com/mikro-orm/mikro-orm/issues/8190) ### [`v7.1.13`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7113-2026-08-20) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.12...v7.1.13) ##### Bug Fixes - **core:** accept plain arrays for enum array properties in EntityData ([#&#8203;8167](https://github.com/mikro-orm/mikro-orm/issues/8167)) ([3812a88](https://github.com/mikro-orm/mikro-orm/commit/3812a88f6c6a6d351177388a60957945faed11c5)), closes [#&#8203;8166](https://github.com/mikro-orm/mikro-orm/issues/8166) - **core:** derive FK field names from `targetKey` instead of composite PKs ([#&#8203;8172](https://github.com/mikro-orm/mikro-orm/issues/8172)) ([92a826b](https://github.com/mikro-orm/mikro-orm/commit/92a826bea1c8af0385f5ae12159a42236bfcab7d)) - **core:** don't overwrite existing rows with onCreate generated values in upsert ([#&#8203;8186](https://github.com/mikro-orm/mikro-orm/issues/8186)) ([4052f58](https://github.com/mikro-orm/mikro-orm/commit/4052f58086fcafb4b266c7dbb6c0b9fa2c1ed833)), closes [#&#8203;7399](https://github.com/mikro-orm/mikro-orm/issues/7399) - **core:** keep `$or` conditions intact when populating to-many relations ([#&#8203;8181](https://github.com/mikro-orm/mikro-orm/issues/8181)) ([026bd8b](https://github.com/mikro-orm/mikro-orm/commit/026bd8b30e131879bed281dc1b008ce2c7899aa4)), closes [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8180](https://github.com/mikro-orm/mikro-orm/issues/8180) - **core:** keep `$or` conditions intact when populating to-one relations ([#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176)) ([3776fe5](https://github.com/mikro-orm/mikro-orm/commit/3776fe59d53f2b1253263389c014bb6da8425311)), closes [#&#8203;1882](https://github.com/mikro-orm/mikro-orm/issues/1882) [#&#8203;6658](https://github.com/mikro-orm/mikro-orm/issues/6658) [#&#8203;8175](https://github.com/mikro-orm/mikro-orm/issues/8175) - **core:** respect `connectionType` option in `em.countBy()` ([#&#8203;8188](https://github.com/mikro-orm/mikro-orm/issues/8188)) ([9e8e3bd](https://github.com/mikro-orm/mikro-orm/commit/9e8e3bdd84ee7f4f16be1dbfbaa1f7ff7047e996)), closes [#&#8203;8187](https://github.com/mikro-orm/mikro-orm/issues/8187) - **core:** skip enum check constraints for `json`/`jsonb` columns ([#&#8203;8184](https://github.com/mikro-orm/mikro-orm/issues/8184)) ([018e522](https://github.com/mikro-orm/mikro-orm/commit/018e5228ce322f69b924ca626fdbe9c28f514647)), closes [#&#8203;8183](https://github.com/mikro-orm/mikro-orm/issues/8183) - **decorators:** don't mutate base class metadata in TC39 decorators ([#&#8203;8177](https://github.com/mikro-orm/mikro-orm/issues/8177)) ([b4e72bd](https://github.com/mikro-orm/mikro-orm/commit/b4e72bd2b7c47c7949dab8ad1a44c10edec33cca)), closes [#&#8203;8178](https://github.com/mikro-orm/mikro-orm/issues/8178) - **query-builder:** keep filter `$or` intact when it spans joined to-one relations ([#&#8203;8182](https://github.com/mikro-orm/mikro-orm/issues/8182)) ([3baa862](https://github.com/mikro-orm/mikro-orm/commit/3baa8620761ca85a780dffbbf26b3d5bcc01a186)), closes [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8176](https://github.com/mikro-orm/mikro-orm/issues/8176) [#&#8203;8179](https://github.com/mikro-orm/mikro-orm/issues/8179) - **sql:** convert custom type values in kysely where clauses ([#&#8203;8189](https://github.com/mikro-orm/mikro-orm/issues/8189)) ([f81cef2](https://github.com/mikro-orm/mikro-orm/commit/f81cef2fef8c48904d8786e81ecc3863ffe57438)) ##### Features - **core:** inherit `collation` from referenced PK on FK columns ([#&#8203;8171](https://github.com/mikro-orm/mikro-orm/issues/8171)) ([126675c](https://github.com/mikro-orm/mikro-orm/commit/126675c4ac891f30572c3a998e60c867d19a0b3c)), closes [#&#8203;8170](https://github.com/mikro-orm/mikro-orm/issues/8170) ### [`v7.1.12`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7112-2026-08-17) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.11...v7.1.12) ##### Bug Fixes - **core:** do not mutate caller-provided options in `merge`, `create`, `getReference` and `fork` ([#&#8203;8150](https://github.com/mikro-orm/mikro-orm/issues/8150)) ([8f3ea3f](https://github.com/mikro-orm/mikro-orm/commit/8f3ea3feeaf2b1c8356803745152db0dba5add52)), closes [#&#8203;8144](https://github.com/mikro-orm/mikro-orm/issues/8144) [#&#8203;8143](https://github.com/mikro-orm/mikro-orm/issues/8143) - **core:** do not mutate the options object provided by the caller ([#&#8203;8144](https://github.com/mikro-orm/mikro-orm/issues/8144)) ([bc60f44](https://github.com/mikro-orm/mikro-orm/commit/bc60f44be58275efd401b792a4f7bfe7d10a0a28)), closes [#&#8203;8143](https://github.com/mikro-orm/mikro-orm/issues/8143) - **core:** use own-property checks in populate hints, canPopulate, and filter options ([#&#8203;8164](https://github.com/mikro-orm/mikro-orm/issues/8164)) ([fdf9f50](https://github.com/mikro-orm/mikro-orm/commit/fdf9f5011f64e79c153439f994ecada5cfba55d9)) - **postgres:** emit and diff the index access method ([#&#8203;8126](https://github.com/mikro-orm/mikro-orm/issues/8126)) ([94d57e8](https://github.com/mikro-orm/mikro-orm/commit/94d57e8ad000eed93dd805a7d8531a784d55ef87)), closes [#&#8203;8124](https://github.com/mikro-orm/mikro-orm/issues/8124) - **postgres:** flatten dollar-quoted bodies in raw trigger and routine DDL ([#&#8203;8142](https://github.com/mikro-orm/mikro-orm/issues/8142)) ([5835d84](https://github.com/mikro-orm/mikro-orm/commit/5835d84c93b3115226b6231cad7ec5e7729a73d8)), closes [#&#8203;8063](https://github.com/mikro-orm/mikro-orm/issues/8063) [#&#8203;8062](https://github.com/mikro-orm/mikro-orm/issues/8062) [#&#8203;8140](https://github.com/mikro-orm/mikro-orm/issues/8140) - **postgres:** keep parens balanced when stripping casts from introspected checks ([#&#8203;8125](https://github.com/mikro-orm/mikro-orm/issues/8125)) ([93bf909](https://github.com/mikro-orm/mikro-orm/commit/93bf90930cf52f376ebd363e489fb9183886a71c)), closes [#&#8203;8123](https://github.com/mikro-orm/mikro-orm/issues/8123) - **query-builder:** allow alias-prefixed keys in nested `$and`/`$or` groups ([#&#8203;8147](https://github.com/mikro-orm/mikro-orm/issues/8147)) ([ac7cc91](https://github.com/mikro-orm/mikro-orm/commit/ac7cc919ba044241783b2545a9490b347614a88d)), closes [#&#8203;8145](https://github.com/mikro-orm/mikro-orm/issues/8145) - **schema:** create foreign keys of new tables after altering existing ones ([#&#8203;8151](https://github.com/mikro-orm/mikro-orm/issues/8151)) ([96ec0fa](https://github.com/mikro-orm/mikro-orm/commit/96ec0fae03f906e08c9a129569603e226618b8af)), closes [#&#8203;8141](https://github.com/mikro-orm/mikro-orm/issues/8141) - **sql:** compare quoted decimal defaults numerically ([#&#8203;8132](https://github.com/mikro-orm/mikro-orm/issues/8132)) ([2776140](https://github.com/mikro-orm/mikro-orm/commit/27761407b2ff8a8a87ed0bf9b13286bc812bd455)), closes [#&#8203;8131](https://github.com/mikro-orm/mikro-orm/issues/8131) - **sql:** resolve TPT parent alias in JSON property conditions ([#&#8203;8163](https://github.com/mikro-orm/mikro-orm/issues/8163)) ([fec54ef](https://github.com/mikro-orm/mikro-orm/commit/fec54ef0c3480c48bcb4fec5a2d841cfef9f1af5)), closes [#&#8203;8162](https://github.com/mikro-orm/mikro-orm/issues/8162) - **sql:** support joining a table or CTE by name via sql.ref() ([#&#8203;8161](https://github.com/mikro-orm/mikro-orm/issues/8161)) ([45d67be](https://github.com/mikro-orm/mikro-orm/commit/45d67bed10fb371dbbf3a266038b9b1eabf0c050)), closes [#&#8203;8157](https://github.com/mikro-orm/mikro-orm/issues/8157) ### [`v7.1.11`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7111-2026-08-06) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.10...v7.1.11) ##### Bug Fixes - **core:** ignore metadata cache entries cached from a different source file ([#&#8203;8111](https://github.com/mikro-orm/mikro-orm/issues/8111)) ([f53ab65](https://github.com/mikro-orm/mikro-orm/commit/f53ab65c39c26dc8e79beee4ab33cf4ac66b1676)), closes [#&#8203;8107](https://github.com/mikro-orm/mikro-orm/issues/8107) - **core:** ignore own `__proto__` key when cloning objects ([#&#8203;8120](https://github.com/mikro-orm/mikro-orm/issues/8120)) ([e09c881](https://github.com/mikro-orm/mikro-orm/commit/e09c8814a660097a60d011d75c69efb060077a58)) - **core:** resolve entity metadata via class references instead of class names ([#&#8203;8108](https://github.com/mikro-orm/mikro-orm/issues/8108)) ([d3564bf](https://github.com/mikro-orm/mikro-orm/commit/d3564bf29e4fafc2cdd9a5bd5a89bbb25f105e27)), closes [#&#8203;8107](https://github.com/mikro-orm/mikro-orm/issues/8107) - **entity-generator:** emit check constraints in generated entities ([#&#8203;8121](https://github.com/mikro-orm/mikro-orm/issues/8121)) ([5f56d24](https://github.com/mikro-orm/mikro-orm/commit/5f56d24e84e96b6ffa9ebde0255ec7a029e0b278)), closes [#&#8203;8114](https://github.com/mikro-orm/mikro-orm/issues/8114) - **entity-generator:** keep index column order when columns map to relations ([#&#8203;8119](https://github.com/mikro-orm/mikro-orm/issues/8119)) ([c3c0601](https://github.com/mikro-orm/mikro-orm/commit/c3c06010d1af4097d21470293f962aa7a1bb498f)), closes [#&#8203;8116](https://github.com/mikro-orm/mikro-orm/issues/8116) - **entity-generator:** preserve advanced options of single-column indexes ([#&#8203;8122](https://github.com/mikro-orm/mikro-orm/issues/8122)) ([e589ed4](https://github.com/mikro-orm/mikro-orm/commit/e589ed425d64bad01212a2f141be579a45ed9cab)), closes [#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118) [#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118) - **entity-generator:** preserve the where clause of partial indexes ([#&#8203;8118](https://github.com/mikro-orm/mikro-orm/issues/8118)) ([fdaa9a8](https://github.com/mikro-orm/mikro-orm/commit/fdaa9a88a09ee8b316a4d74ca816a63b54e4ab3a)), closes [#&#8203;8115](https://github.com/mikro-orm/mikro-orm/issues/8115) - **migrations:** allow stable migration names when class names are minified ([#&#8203;8109](https://github.com/mikro-orm/mikro-orm/issues/8109)) ([560fb4f](https://github.com/mikro-orm/mikro-orm/commit/560fb4fac46b02715cf79af14c0fcc1c6126e22b)) - **sql:** infer columns with a default value as kysely `Generated` ([#&#8203;8117](https://github.com/mikro-orm/mikro-orm/issues/8117)) ([29f074f](https://github.com/mikro-orm/mikro-orm/commit/29f074f26dcd0390f2c138a59d253cdb36e3319d)), closes [#&#8203;8113](https://github.com/mikro-orm/mikro-orm/issues/8113) ### [`v7.1.10`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#7110-2026-08-04) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.9...v7.1.10) ##### Bug Fixes - **core:** duck-type `Routine.is()` to survive the CJS/ESM dual-package hazard ([#&#8203;8094](https://github.com/mikro-orm/mikro-orm/issues/8094)) ([59df822](https://github.com/mikro-orm/mikro-orm/commit/59df82261cab79649314ae597fbd00000bf9bd7f)), closes [#&#8203;7289](https://github.com/mikro-orm/mikro-orm/issues/7289) [#&#8203;8092](https://github.com/mikro-orm/mikro-orm/issues/8092) - **core:** map cursor offsets based on property types ([#&#8203;8097](https://github.com/mikro-orm/mikro-orm/issues/8097)) ([231ff06](https://github.com/mikro-orm/mikro-orm/commit/231ff06df5052c0e8235dda1b705710a2b81aff3)) - **core:** prevent hash collisions for nested composite keys ([#&#8203;8088](https://github.com/mikro-orm/mikro-orm/issues/8088)) ([7fef7ee](https://github.com/mikro-orm/mikro-orm/commit/7fef7ee9a4adaebb85318314fbd9aba7443c079c)) - **mongo:** support cursor pagination ordered by date inside object embeddable ([#&#8203;8102](https://github.com/mikro-orm/mikro-orm/issues/8102)) ([d3bb418](https://github.com/mikro-orm/mikro-orm/commit/d3bb41839fb8a991c3eb5cdd8a2ec27131f02e62)), closes [#&#8203;8097](https://github.com/mikro-orm/mikro-orm/issues/8097) - **mssql:** support predictable primary key names ([#&#8203;8095](https://github.com/mikro-orm/mikro-orm/issues/8095)) ([b16daec](https://github.com/mikro-orm/mikro-orm/commit/b16daec207a72e4a922d511d13fecb172dfdd957)) - **sql:** nest joins referenced by `on` conditions instead of only newly added ones ([#&#8203;8101](https://github.com/mikro-orm/mikro-orm/issues/8101)) ([d137965](https://github.com/mikro-orm/mikro-orm/commit/d137965922932b9ba6ffc6b52083fb79e4f5fde3)), closes [#&#8203;8100](https://github.com/mikro-orm/mikro-orm/issues/8100) [7681/#&#8203;8091](https://github.com/mikro-orm/mikro-orm/issues/8091) [#&#8203;8100](https://github.com/mikro-orm/mikro-orm/issues/8100) [#&#8203;8099](https://github.com/mikro-orm/mikro-orm/issues/8099) - **sql:** prevent forward join alias references when applying joined filters ([#&#8203;8091](https://github.com/mikro-orm/mikro-orm/issues/8091)) ([8388010](https://github.com/mikro-orm/mikro-orm/commit/83880104c3544be02ba00649f8078c5405db61a4)), closes [#&#8203;7681](https://github.com/mikro-orm/mikro-orm/issues/7681) [#&#8203;8090](https://github.com/mikro-orm/mikro-orm/issues/8090) - **sql:** yield all rows merged from the final batch when streaming ([#&#8203;8089](https://github.com/mikro-orm/mikro-orm/issues/8089)) ([989690a](https://github.com/mikro-orm/mikro-orm/commit/989690a2d2e5fcfe326972fb4d9531b2cb6c4853)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) ### [`v7.1.9`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#719-2026-07-30) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.8...v7.1.9) ##### Bug Fixes - **core:** fix batch updates when the whole primary key is one relation ([#&#8203;8065](https://github.com/mikro-orm/mikro-orm/issues/8065)) ([aeefa5e](https://github.com/mikro-orm/mikro-orm/commit/aeefa5e90577fa24081a64f9f8ef55d1edbf8bd2)) - **core:** keep `null` value of embedded arrays in snapshots and hydration ([#&#8203;8046](https://github.com/mikro-orm/mikro-orm/issues/8046)) ([93d62bf](https://github.com/mikro-orm/mikro-orm/commit/93d62bf278b21169ade73b6448daab846634d5d0)), closes [#&#8203;8045](https://github.com/mikro-orm/mikro-orm/issues/8045) - **core:** keep the fixed order column as the sole pivot PK for polymorphic M:N ([#&#8203;8083](https://github.com/mikro-orm/mikro-orm/issues/8083)) ([3ac8b73](https://github.com/mikro-orm/mikro-orm/commit/3ac8b73ebd90dc85a414ae8f36ffddb185c71fd1)) - **core:** map returning values back to entities after batch update ([#&#8203;8056](https://github.com/mikro-orm/mikro-orm/issues/8056)) ([5895309](https://github.com/mikro-orm/mikro-orm/commit/589530926386ae962aa551465094e61307527e8b)) - **core:** support mixed STI child types in batch updates ([#&#8203;8057](https://github.com/mikro-orm/mikro-orm/issues/8057)) ([f6e5fd4](https://github.com/mikro-orm/mikro-orm/commit/f6e5fd4fac3c5b62d75ea74838c2108b1b7f126f)) - **core:** support version and optimistic locking on nested composite keys ([#&#8203;8064](https://github.com/mikro-orm/mikro-orm/issues/8064)) ([d533e76](https://github.com/mikro-orm/mikro-orm/commit/d533e76fe441ed3f06b5efcbb45407d82eb63ab8)) - **entity-generator:** correctly escape generated string literals and keys ([#&#8203;8048](https://github.com/mikro-orm/mikro-orm/issues/8048)) ([adf2b84](https://github.com/mikro-orm/mikro-orm/commit/adf2b84c069bae7d91ae2e66126db4241d45cf89)) - **entity-generator:** sanitize file names taken from database metadata ([#&#8203;8052](https://github.com/mikro-orm/mikro-orm/issues/8052)) ([4efac39](https://github.com/mikro-orm/mikro-orm/commit/4efac398acb84014a3d0414b2c09fef06bc82afa)) - **libsql:** stop recycling local connections every 10 seconds ([#&#8203;8050](https://github.com/mikro-orm/mikro-orm/issues/8050)) ([bd2a1cf](https://github.com/mikro-orm/mikro-orm/commit/bd2a1cf06d8d0f4823e19c5d6670a8e2be837c24)) - **migrations:** sanitize custom migration names into valid class identifiers ([#&#8203;8053](https://github.com/mikro-orm/mikro-orm/issues/8053)) ([20a3ae2](https://github.com/mikro-orm/mikro-orm/commit/20a3ae258b2592176bc6207204aeb4f9c95b142e)) - **mssql:** execute `create trigger` in its own query batch ([#&#8203;8072](https://github.com/mikro-orm/mikro-orm/issues/8072)) ([5d0420e](https://github.com/mikro-orm/mikro-orm/commit/5d0420edebc27454c09bba22ea7baf637d7c70e0)) - **mssql:** manage table and column comments via extended properties ([#&#8203;8076](https://github.com/mikro-orm/mikro-orm/issues/8076)) ([d579f04](https://github.com/mikro-orm/mikro-orm/commit/d579f04aaf969c876d4630aab1369e369ad1807e)) - **oracledb:** bind every returned column of a multi column property ([#&#8203;8059](https://github.com/mikro-orm/mikro-orm/issues/8059)) ([dc17ec2](https://github.com/mikro-orm/mikro-orm/commit/dc17ec2afe93cb173d89277dc33ed234c2cc7506)) - **oracle:** keep the config user in sync with the pool after `dropDatabase()` ([#&#8203;8043](https://github.com/mikro-orm/mikro-orm/issues/8043)) ([6e1113d](https://github.com/mikro-orm/mikro-orm/commit/6e1113d6334f01ad8ebbc5a846d6249d23d34ecd)) - **oracle:** set the session schema when the connection user differs from `dbName` ([#&#8203;8042](https://github.com/mikro-orm/mikro-orm/issues/8042)) ([3a942d2](https://github.com/mikro-orm/mikro-orm/commit/3a942d22bdc50914e3e4db61f1f8f3f8a22c7c73)), closes [#&#8203;8040](https://github.com/mikro-orm/mikro-orm/issues/8040) - **postgresql:** don't crash the process when the server drops a connection ([#&#8203;8069](https://github.com/mikro-orm/mikro-orm/issues/8069)) ([66d3b1a](https://github.com/mikro-orm/mikro-orm/commit/66d3b1a18979eac676c57755e595f62377566362)) - **sql:** apply column comment changes in a single schema update pass ([#&#8203;8077](https://github.com/mikro-orm/mikro-orm/issues/8077)) ([c48a435](https://github.com/mikro-orm/mikro-orm/commit/c48a435d33113d66db53adf0ae9ff8c5e87c346b)) - **sql:** apply query cancellation strategies inside transactions ([#&#8203;8067](https://github.com/mikro-orm/mikro-orm/issues/8067)) ([11525e3](https://github.com/mikro-orm/mikro-orm/commit/11525e36bb0d3f13921059d64fe1c5ffe4125c36)) - **sql:** compile an empty `$or` to an always-false predicate ([#&#8203;8054](https://github.com/mikro-orm/mikro-orm/issues/8054)) ([0578108](https://github.com/mikro-orm/mikro-orm/commit/057810881d2151355770a2782bb08bd136c80209)) - **sql:** emit valid SQL for negated and empty condition groups ([#&#8203;8060](https://github.com/mikro-orm/mikro-orm/issues/8060)) ([905286b](https://github.com/mikro-orm/mikro-orm/commit/905286b53a4d9234a81f871d1c510e77c8c67e2e)) - **sql:** include composite FK values in the pivot row hash ([#&#8203;8082](https://github.com/mikro-orm/mikro-orm/issues/8082)) ([f2d5a89](https://github.com/mikro-orm/mikro-orm/commit/f2d5a896531a35a0b2a0b361047322fa06ab38bb)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) - **sql:** keep multi line comments intact when grouping schema DDL ([#&#8203;8079](https://github.com/mikro-orm/mikro-orm/issues/8079)) ([b74e332](https://github.com/mikro-orm/mikro-orm/commit/b74e33218f3961e90064e720556f24e4291eead3)) - **sql:** keep multi line trigger bodies stable across schema updates ([#&#8203;8074](https://github.com/mikro-orm/mikro-orm/issues/8074)) ([165ff59](https://github.com/mikro-orm/mikro-orm/commit/165ff591ff4233457f713a74267e173e2c1f5b8f)) - **sql:** keep pivot rows distinct when the fixed order column is not unique ([#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078)) ([63a2c83](https://github.com/mikro-orm/mikro-orm/commit/63a2c8338d6b89c916cd2de5c18d7075fefcf51a)), closes [#&#8203;8075](https://github.com/mikro-orm/mikro-orm/issues/8075) - **sql:** keep polymorphic pivot rows distinct when the fixed order column is not unique ([#&#8203;8085](https://github.com/mikro-orm/mikro-orm/issues/8085)) ([20734f7](https://github.com/mikro-orm/mikro-orm/commit/20734f799da2ae784f911ec81bf9e2fce023c6d1)), closes [#&#8203;8078](https://github.com/mikro-orm/mikro-orm/issues/8078) - **sql:** keep the original error when the rollback of a failed transaction also fails ([#&#8203;8068](https://github.com/mikro-orm/mikro-orm/issues/8068)) ([7663639](https://github.com/mikro-orm/mikro-orm/commit/76636397bdff8167c1a1e8ea67d721c553a6976b)) - **sql:** load M:N collections of owners with a nested composite PK ([#&#8203;8080](https://github.com/mikro-orm/mikro-orm/issues/8080)) ([d4a5a33](https://github.com/mikro-orm/mikro-orm/commit/d4a5a33a2c3205c73ee23b96c96833d70dcc3045)) - **sql:** load the owner side of a polymorphic M:N pivot shared by owners of different PK arity ([#&#8203;8084](https://github.com/mikro-orm/mikro-orm/issues/8084)) ([6fbdcc4](https://github.com/mikro-orm/mikro-orm/commit/6fbdcc4a2bf24785bec9ff6c1a0d0305ea65e013)), closes [#&#8203;8081](https://github.com/mikro-orm/mikro-orm/issues/8081) - **sql:** load the owner side of a polymorphic M:N with a composite PK owner ([#&#8203;8081](https://github.com/mikro-orm/mikro-orm/issues/8081)) ([a38cca5](https://github.com/mikro-orm/mikro-orm/commit/a38cca50297083df5847cccd620e7f3c62583262)), closes [#&#8203;8080](https://github.com/mikro-orm/mikro-orm/issues/8080) - **sql:** normalize implicit aggregate aliases and multi word casts ([#&#8203;8058](https://github.com/mikro-orm/mikro-orm/issues/8058)) ([e90c141](https://github.com/mikro-orm/mikro-orm/commit/e90c14175f5f05509d2e028882c80f0eddd24fb3)), closes [#&#8203;8055](https://github.com/mikro-orm/mikro-orm/issues/8055) - **sql:** normalize trigger bodies when generating DDL ([#&#8203;8063](https://github.com/mikro-orm/mikro-orm/issues/8063)) ([32da92f](https://github.com/mikro-orm/mikro-orm/commit/32da92ff4f0d1af47db62a30e82cc4a0d6117839)), closes [#&#8203;8061](https://github.com/mikro-orm/mikro-orm/issues/8061) - **sql:** pass a flat PK array when persisting M:N of a composite PK owner ([#&#8203;8073](https://github.com/mikro-orm/mikro-orm/issues/8073)) ([f88d567](https://github.com/mikro-orm/mikro-orm/commit/f88d567f645a7a19e2848d2c4516b74594e3a08c)) ### [`v7.1.8`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#718-2026-07-28) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.7...v7.1.8) ##### Bug Fixes - **core:** convert custom types when querying composite PK via array form ([#&#8203;8035](https://github.com/mikro-orm/mikro-orm/issues/8035)) ([ba0c4c2](https://github.com/mikro-orm/mikro-orm/commit/ba0c4c23e9eed5ada3aa51687425543198862704)) - **core:** don't let a partially loaded fork entity clobber the parent context ([#&#8203;8036](https://github.com/mikro-orm/mikro-orm/issues/8036)) ([d3e9f1c](https://github.com/mikro-orm/mikro-orm/commit/d3e9f1c7d0e2ee6550c77683effba50d11aba913)) - **core:** fix infinite recursion when flushing a `mapToPk` FK with value `0` ([#&#8203;8004](https://github.com/mikro-orm/mikro-orm/issues/8004)) ([f01fd6f](https://github.com/mikro-orm/mikro-orm/commit/f01fd6faf7cbd7a9e6810015b605f9a29bdc04da)), closes [#&#8203;8003](https://github.com/mikro-orm/mikro-orm/issues/8003) - **core:** key composite primary keys with custom types by their database form ([#&#8203;8029](https://github.com/mikro-orm/mikro-orm/issues/8029)) ([5d582ec](https://github.com/mikro-orm/mikro-orm/commit/5d582ec19b44a25f5c311769817cb9978ef12c34)), closes [#&#8203;8021](https://github.com/mikro-orm/mikro-orm/issues/8021) - **core:** populate 1:m collections of parents with falsy PK values ([#&#8203;8002](https://github.com/mikro-orm/mikro-orm/issues/8002)) ([eaa25d4](https://github.com/mikro-orm/mikro-orm/commit/eaa25d49536422e591d3a5ce1fe5a50b71fa4dba)), closes [#&#8203;8000](https://github.com/mikro-orm/mikro-orm/issues/8000) - **core:** respect custom type conversion in identity map lookups ([#&#8203;8021](https://github.com/mikro-orm/mikro-orm/issues/8021)) ([44d470d](https://github.com/mikro-orm/mikro-orm/commit/44d470d4333c57720b2ffdfda62eeab1eed2fbe8)), closes [#&#8203;8020](https://github.com/mikro-orm/mikro-orm/issues/8020) - **migrations:** respect `skipTables`/`skipViews` when rewriting the snapshot ([#&#8203;8038](https://github.com/mikro-orm/mikro-orm/issues/8038)) ([08e5801](https://github.com/mikro-orm/mikro-orm/commit/08e580114bdb61bc57cb8d8517110b06f83eabd5)), closes [#&#8203;8037](https://github.com/mikro-orm/mikro-orm/issues/8037) - **migrations:** store the create snapshot in the resolved migrations folder ([#&#8203;8027](https://github.com/mikro-orm/mikro-orm/issues/8027)) ([d7a9ea8](https://github.com/mikro-orm/mikro-orm/commit/d7a9ea81a6be5a650201cd80774b4d1489508fae)), closes [#&#8203;8024](https://github.com/mikro-orm/mikro-orm/issues/8024) - **sql:** do not apply collection `where` of non-joined nested relations ([#&#8203;8030](https://github.com/mikro-orm/mikro-orm/issues/8030)) ([f3d48d8](https://github.com/mikro-orm/mikro-orm/commit/f3d48d89ccb50da48039e37c2865586e830fae60)), closes [#&#8203;8022](https://github.com/mikro-orm/mikro-orm/issues/8022) - **sql:** order introspection queries so generated schema diffs are stable ([#&#8203;8031](https://github.com/mikro-orm/mikro-orm/issues/8031)) ([25d956b](https://github.com/mikro-orm/mikro-orm/commit/25d956b3284ff40e3d7c5fd2bf527f5521f5d2ae)) - **sql:** preserve query builder field types across joins and CTEs ([#&#8203;8005](https://github.com/mikro-orm/mikro-orm/issues/8005)) ([b8a5bea](https://github.com/mikro-orm/mikro-orm/commit/b8a5bea56b5786917d83eab6f31304d243283515)) ### [`v7.1.7`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#717-2026-07-17) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.6...v7.1.7) ##### Bug Fixes - **core:** ignore special object keys in `assign()` ([#&#8203;7998](https://github.com/mikro-orm/mikro-orm/issues/7998)) ([6c65ffb](https://github.com/mikro-orm/mikro-orm/commit/6c65ffb10ef2387adaa202121dd0ba1ca644c018)) - **core:** support same-named nested embeddables with different props in polymorphic embeddables ([#&#8203;7986](https://github.com/mikro-orm/mikro-orm/issues/7986)) ([c926fd8](https://github.com/mikro-orm/mikro-orm/commit/c926fd86f7dd93f060e8a77ebcdf40d889009dcd)), closes [#&#8203;7983](https://github.com/mikro-orm/mikro-orm/issues/7983) - **mariadb:** keep JSON columns as strings on mysql2 3.23+ ([#&#8203;7994](https://github.com/mikro-orm/mikro-orm/issues/7994)) ([0154130](https://github.com/mikro-orm/mikro-orm/commit/015413015b465b7d3f4a65d1b7a58f33f1da0f5b)), closes [#&#8203;7981](https://github.com/mikro-orm/mikro-orm/issues/7981) - **mssql:** map FK, CHECK, PK/unique, deadlock and lock-timeout errors to driver exceptions ([#&#8203;7959](https://github.com/mikro-orm/mikro-orm/issues/7959)) ([adc52fc](https://github.com/mikro-orm/mikro-orm/commit/adc52fced854c89b6f6496b4c356f1910379d0c3)) - **mssql:** retry create database when the model database is locked ([#&#8203;7985](https://github.com/mikro-orm/mikro-orm/issues/7985)) ([f528107](https://github.com/mikro-orm/mikro-orm/commit/f52810710c9fdea1d3e10cfcc80f9c12257edeb0)) - **postgres:** make check introspection columnName deterministic ([#&#8203;7992](https://github.com/mikro-orm/mikro-orm/issues/7992)) ([ab14f97](https://github.com/mikro-orm/mikro-orm/commit/ab14f9767a6bd1fe9347d5722f51515c997855e8)), closes [#&#8203;7991](https://github.com/mikro-orm/mikro-orm/issues/7991) - **sql:** validate order by direction against known values ([#&#8203;7996](https://github.com/mikro-orm/mikro-orm/issues/7996)) ([3aba926](https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5)) ### [`v7.1.6`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#716-2026-07-13) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.1.5...v7.1.6) ##### Bug Fixes - **core:** carry merged ancestor builders so Kysely types span multi-level `extends` ([#&#8203;7939](https://github.com/mikro-orm/mikro-orm/issues/7939)) ([3c56082](https://github.com/mikro-orm/mikro-orm/commit/3c560825f8123d277c1d493490e2f26dac66e0f6)), closes [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938) [#&#8203;7937](https://github.com/mikro-orm/mikro-orm/issues/7937) - **core:** ignore process-local metadata `_id` when loading from cache ([#&#8203;7978](https://github.com/mikro-orm/mikro-orm/issues/7978)) ([4777f9d](https://github.com/mikro-orm/mikro-orm/commit/4777f9dc0703fe4736ad3e9b466b37d577f8cf77)), closes [#&#8203;7975](https://github.com/mikro-orm/mikro-orm/issues/7975) - **core:** infer `string` for `time` type properties instead of `any` ([#&#8203;7961](https://github.com/mikro-orm/mikro-orm/issues/7961)) ([486eff8](https://github.com/mikro-orm/mikro-orm/commit/486eff8e0cdc218e97b038f920e1579e3beb055e)) - **core:** keep custom-typed PK snapshots in DB-form to avoid spurious updates ([#&#8203;7973](https://github.com/mikro-orm/mikro-orm/issues/7973)) ([393a7f3](https://github.com/mikro-orm/mikro-orm/commit/393a7f3ab4f2eaef2cc9148a8507bb05ebf63279)), closes [#&#8203;7966](https://github.com/mikro-orm/mikro-orm/issues/7966) - **core:** make entity type inference robust under TS 7 stable type ordering ([#&#8203;7948](https://github.com/mikro-orm/mikro-orm/issues/7948)) ([a5d1827](https://github.com/mikro-orm/mikro-orm/commit/a5d18271d55b398a63d972cfce8a4874374107c8)), closes [microsoft/typescript-go#4464](https://github.com/microsoft/typescript-go/issues/4464) - **core:** support `@Check()` on class level with TC39 decorators ([#&#8203;7982](https://github.com/mikro-orm/mikro-orm/issues/7982)) ([23e47d9](https://github.com/mikro-orm/mikro-orm/commit/23e47d9075e1cf04f2a1332164af3d9a293d691b)) - **mysql:** treat (current\_date) and curdate() date defaults as equal ([#&#8203;7956](https://github.com/mikro-orm/mikro-orm/issues/7956)) ([441eaa1](https://github.com/mikro-orm/mikro-orm/commit/441eaa110aeeb0920bb6ac40854802ab9ee7b78b)) - **oracle:** keep FK schema owner case consistent with columns and tables ([#&#8203;7964](https://github.com/mikro-orm/mikro-orm/issues/7964)) ([ad776b7](https://github.com/mikro-orm/mikro-orm/commit/ad776b7d971f3e868128dfd33e9c198bc9973515)), closes [#&#8203;7960](https://github.com/mikro-orm/mikro-orm/issues/7960) - **sql:** avoid phantom changeset for inline embeddable loaded via joined strategy ([#&#8203;7971](https://github.com/mikro-orm/mikro-orm/issues/7971)) ([9c7612a](https://github.com/mikro-orm/mikro-orm/commit/9c7612afd371964d55d01e741bb058137ca331b8)), closes [#&#8203;7954](https://github.com/mikro-orm/mikro-orm/issues/7954) - **sql:** do not propagate TPT parent check constraints to child tables ([#&#8203;7944](https://github.com/mikro-orm/mikro-orm/issues/7944)) ([0f34374](https://github.com/mikro-orm/mikro-orm/commit/0f34374914211ade1ccb60acd2e01b46fb96fe99)), closes [#&#8203;7714](https://github.com/mikro-orm/mikro-orm/issues/7714) [#&#8203;7935](https://github.com/mikro-orm/mikro-orm/issues/7935) - **sql:** expose columns inherited via `extends` in `getKysely()` table type ([#&#8203;7938](https://github.com/mikro-orm/mikro-orm/issues/7938)) ([ebaa2be](https://github.com/mikro-orm/mikro-orm/commit/ebaa2be3428bee4d269f51154ab11bfc16ae5656)), closes [#&#8203;7937](https://github.com/mikro-orm/mikro-orm/issues/7937) - **sql:** infer array columns as arrays in Kysely table types ([#&#8203;7972](https://github.com/mikro-orm/mikro-orm/issues/7972)) ([2b79554](https://github.com/mikro-orm/mikro-orm/commit/2b79554009180f247331218a8cab9480e71dd19c)), closes [#&#8203;7967](https://github.com/mikro-orm/mikro-orm/issues/7967) - **sql:** keep non-lazy `@Formula` out of partial-index predicate rendering ([#&#8203;7947](https://github.com/mikro-orm/mikro-orm/issues/7947)) ([368123d](https://github.com/mikro-orm/mikro-orm/commit/368123d8b05f3ae9ccaa0cbd4c7811b46570d6a9)), closes [#&#8203;7946](https://github.com/mikro-orm/mikro-orm/issues/7946) - **sql:** keep nullable relation FK columns nullable in class-based Kysely inference ([#&#8203;7965](https://github.com/mikro-orm/mikro-orm/issues/7965)) ([fde9258](https://github.com/mikro-orm/mikro-orm/commit/fde9258bedf8315a4f842b776241eeb8b50295a0)), closes [#&#8203;7962](https://github.com/mikro-orm/mikro-orm/issues/7962) - **sql:** stop schema diff churning on generated columns with underscore literals ([#&#8203;7955](https://github.com/mikro-orm/mikro-orm/issues/7955)) ([6c9f0a6](https://github.com/mikro-orm/mikro-orm/commit/6c9f0a6598a6bcd4f6d34b62242494199c7407a4)) - **sql:** support orderBy on persist(false) virtual fields with pagination ([#&#8203;7979](https://github.com/mikro-orm/mikro-orm/issues/7979)) ([0454aea](https://github.com/mikro-orm/mikro-orm/commit/0454aea6509e4faac83a5280d7325904f62a917f)), closes [#&#8203;7932](https://github.com/mikro-orm/mikro-orm/issues/7932) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTIuNCIsInVwZGF0ZWRJblZlciI6IjQ0LjY1LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImJhY2tlbmQiLCJyZW5vdmF0ZSJdfQ==-->
renovate-bot force-pushed renovate/mikro-orm-monorepo from 459f294beb to 5178a0bcfd 2026-07-18 06:01:18 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.6 to Update mikro-orm monorepo to v7.1.7 2026-07-18 06:01:19 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 5178a0bcfd to 85b961d6d3 2026-07-29 06:01:31 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.7 to Update mikro-orm monorepo to v7.1.8 2026-07-29 06:01:35 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 85b961d6d3 to 5e41af7edf 2026-07-31 06:01:21 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.8 to Update mikro-orm monorepo to v7.1.9 2026-07-31 06:01:25 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 5e41af7edf to 621eddadf5 2026-08-10 13:06:52 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.9 to Update mikro-orm monorepo to v7.1.11 2026-08-10 13:07:02 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 621eddadf5 to 3024763b0a 2026-08-18 06:01:39 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.11 to Update mikro-orm monorepo to v7.1.12 2026-08-18 06:01:45 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 3024763b0a to d6677dc3cf 2026-08-21 06:01:44 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.12 to Update mikro-orm monorepo to v7.1.13 2026-08-21 06:01:48 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from d6677dc3cf to d61c8bcf1f 2026-08-27 06:01:20 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.13 to Update mikro-orm monorepo to v7.1.14 2026-08-27 06:01:26 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from d61c8bcf1f to 91ad54ffa7 2026-09-04 06:01:11 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.14 to Update mikro-orm monorepo to v7.1.15 2026-09-04 06:01:16 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 91ad54ffa7 to c2eeb58e08 2026-09-08 06:02:29 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.1.15 to Update mikro-orm monorepo to v7.2.0 2026-09-08 06:02:35 +01:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/mikro-orm-monorepo:renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo
git rebase main
git switch main
git merge --ff-only renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo
git rebase main
git switch main
git merge --no-ff renovate/mikro-orm-monorepo
git switch main
git merge --squash renovate/mikro-orm-monorepo
git switch main
git merge --ff-only renovate/mikro-orm-monorepo
git switch main
git merge renovate/mikro-orm-monorepo
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MobiusReactor/TicTacToeV2!117
No description provided.