Update mikro-orm monorepo to v7.2.9 #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.5 → 7.2.9 age adoption passing confidence
@mikro-orm/core (source) 7.1.5 → 7.2.9 age adoption passing confidence
@mikro-orm/migrations (source) 7.1.5 → 7.2.9 age adoption passing confidence
@mikro-orm/postgresql (source) 7.1.5 → 7.2.9 age adoption passing confidence

Release Notes

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

v7.2.9

Compare Source

Bug Fixes
Performance Improvements

v7.2.8

Compare Source

Bug Fixes
  • core: apply the entity default orderBy in em.stream() and em.findOne() (#​8612) (840bc49), closes #​7133 #​8503
  • core: handle non-JSON query values in result cache and dataloader keys (#​8598) (def0462)
  • core: include regexp and raw fragment params in result cache keys (#​8597) (c4d5e78)
  • core: respect FK deleteRule when removing an entity with loaded 1:M collections (#​8608) (9dff7c8), closes #​8606
  • migrations: keep table partitioning in the schema snapshot (#​8601) (03f85d8), closes #​7816
  • mongo: convert $re inside $elemMatch and keep $re keys in entity data (#​8611) (47ca87b), closes #​8599
  • mongo: convert $re on renamed fields, next to other operators and under $not (#​8599) (885bed8)
  • mongo: limit inverse M:N populate per parent instead of per owner array (#​8618) (79e817a)
  • mssql: handle composite PK $in/$nin with an empty list or multiple tuples (#​8609) (badc189)
  • mysql: escape and parse enum items containing quotes or commas (#​8614) (cdbc0cb), closes #​8554
  • sql: keep $or, $and and $not in the upsert conflict condition (#​8602) (19d05e4), closes #​8600
  • sql: order by a composite relation key in paginated queries and with an alias prefix (#​8610) (4b837e4)
  • sql: quote index names in using hints and validate using on em.count() (#​8613) (35fe690)
Performance Improvements

v7.2.7

Compare Source

Bug Fixes
Features
Performance Improvements

v7.2.6

Compare Source

Bug Fixes
Performance Improvements

v7.2.5

Compare Source

Bug Fixes

v7.2.4

Compare Source

Bug Fixes
Performance Improvements

v7.2.3

Compare Source

Bug Fixes
  • core: detect changes to decimal strings beyond double precision (#​8368) (6ba4d2b), closes high-precision
  • mssql: skip TPT child tables when reseeding identities in clear() (#​8358) (7a3614e)
  • oracle: introspect primary keys so the schema diff can restore and change them (#​8357) (1a5c4f0)
  • oracle: return non-PK autoincrement and generated columns after inserts (#​8359) (1662688)
  • postgres: don't restore stale inbound FKs when repartitioning a table (#​8371) (5c15854), closes #​8369
  • postgres: drop unique index expressions via drop index instead of drop constraint (#​8365) (d798236), closes #​8363
  • postgres: leave list/range partitions not declared in metadata unmanaged (#​8370) (54d855b), closes #​8362
  • postgres: normalize double precision casts and between in check constraint diffs (#​8366) (38cb8fc), closes #​8361
  • postgres: respect identity options when diffing and rendering columns (#​8351) (77ad8e3), closes #​8350
  • sql: declare the primary key once when replacing it with a new autoincrement column (#​8354) (5c9dfab)
  • sqlite: rebuild the table when the primary key is added or changed (#​8356) (052b83b)
  • sql: only convert regexps that LIKE can express (#​8367) (8a6d649)
  • sql: only skip auto-generated enum checks when diffing check constraints (#​8375) (ceeb1bc), closes #​8374
  • sql: restore a missing primary key in the schema diff (#​8355) (a0e4c75)

v7.2.2

Compare Source

Bug Fixes
  • core: allow falsy values in concurrency checks (#​8318) (8f483a6)
  • core: compare FK column for primary key conditions on polymorphic relations (#​8328) (7ead234), closes #​8326
  • core: do not mutate the where condition and data passed to the EntityManager (#​8291) (6b42e5b), closes #​8290
  • core: handle primary key values and objects in polymorphic and relation conditions (#​8329) (cc54e42), closes #​8328
  • core: hydrate partial upsert results without mismatching entities (#​8294) (62632c2)
  • core: keep entity identity for relations using targetKey (#​8323) (10c73e3), closes #​8322
  • core: keep the input order in em.upsertMany() when a split batch has duplicate rows (#​8310) (3625eab)
  • core: make compiled function keys independent of module evaluation order (#​8339) (4e52beb), closes #​8335
  • core: map upsertMany results to the corresponding SQL inputs (#​8305) (bb0a814)
  • core: merge columns supplied only by some rows in em.upsertMany() (#​8298) (156e5ba)
  • core: preserve concurrency values in batch lock checks (#​8317) (4cd89c6)
  • core: preserve entity schema when restoring cached results (#​8303) (4be2efc)
  • core: preserve existing groups when lifting relation filters (#​8304) (22dc99a)
  • core: resolve repositories in non-transactional callbacks (#​8316) (287978f)
  • core: respect custom fieldNames in polymorphic relations (#​8324) (dee0655)
  • core: respect locally disabled transactions during flush (#​8306) (8185e4f)
  • mongodb: throw on unsupported polymorphic relation conditions (#​8326) (3192a2a)
  • mssql: handle OUTPUT results on tables with triggers (#​8295) (22a1b66)
  • mssql: preserve columns from heterogeneous upsert inputs (#​8296) (ed463e5)
  • mssql: restrict TPT identity inserts to the owning table (#​8297) (b07d131)
  • sql: apply target filters when populating polymorphic relations (#​8330) (3338cab)
  • sql: do not convert custom types twice in em.countBy() (#​8342) (f2f19f9), closes #​8341
  • sql: do not treat persisted properties as virtual in paginated orderBy (#​8309) (6e765dd), closes #​8308
  • sql: handle STI subtypes with conflicting property columns and types (#​8340) (cbf93e0)
  • sql: keep halfvec and sparsevec dimensions during postgres introspection (#​8315) (59d3633), closes #​5739
  • sql: keep rows when ordering by polymorphic relation targets (#​8334) (b609860)
  • sql: resolve embedded formulas in partial field selections (#​8301) (3fa975a)
  • sql: resolve inline embeddable columns that shadow the property name (#​8293) (7042e34), closes #​8292
  • sql: respect distinct() and distinctOn() in qb.getCount() (#​8312) (00da4bd), closes #​8311
  • sql: respect property returning hints on updates and upserts (#​8299) (4cb1ce3)
Performance Improvements

v7.2.1

Compare Source

Bug Fixes
Features

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.9`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcli/7.1.5/7.2.9) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcli/7.2.9?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcli/7.2.9?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcli/7.1.5/7.2.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcli/7.1.5/7.2.9?slim=true) | | [@mikro-orm/core](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.9`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcore/7.1.5/7.2.9) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcore/7.2.9?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcore/7.2.9?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcore/7.1.5/7.2.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcore/7.1.5/7.2.9?slim=true) | | [@mikro-orm/migrations](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.9`](https://renovatebot.com/diffs/npm/@mikro-orm%2fmigrations/7.1.5/7.2.9) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fmigrations/7.2.9?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fmigrations/7.2.9?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fmigrations/7.1.5/7.2.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fmigrations/7.1.5/7.2.9?slim=true) | | [@mikro-orm/postgresql](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`7.1.5` → `7.2.9`](https://renovatebot.com/diffs/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.9) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fpostgresql/7.2.9?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fpostgresql/7.2.9?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fpostgresql/7.1.5/7.2.9?slim=true) | --- ### Release Notes <details> <summary>mikro-orm/mikro-orm (@&#8203;mikro-orm/cli)</summary> ### [`v7.2.9`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#729-2026-11-12) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.8...v7.2.9) ##### Bug Fixes - **cli:** resolve TS loaders from the project root ([#&#8203;8669](https://github.com/mikro-orm/mikro-orm/issues/8669)) ([1b655f9](https://github.com/mikro-orm/mikro-orm/commit/1b655f9bcdf0b07e0922bb3a45e1f19fb28731bd)) - **core:** accept `FindOptions<T>` typed options in generic `find()` wrappers ([#&#8203;8662](https://github.com/mikro-orm/mikro-orm/issues/8662)) ([932227e](https://github.com/mikro-orm/mikro-orm/commit/932227ea6669bf6e7ec359d4da3463765109c35e)), closes [#&#8203;8655](https://github.com/mikro-orm/mikro-orm/issues/8655) - **core:** clean up the serialization context when `toObject()` or `serialize()` throws ([#&#8203;8636](https://github.com/mikro-orm/mikro-orm/issues/8636)) ([70ce74e](https://github.com/mikro-orm/mikro-orm/commit/70ce74e908472ed6943e04d97d2556e04ce4e010)) - **core:** detect in-place mutations of Date properties on loaded entities ([#&#8203;8675](https://github.com/mikro-orm/mikro-orm/issues/8675)) ([2a02c9f](https://github.com/mikro-orm/mikro-orm/commit/2a02c9f0f6edabd551181bdf23e80aa60ebb7588)), closes [#&#8203;4391](https://github.com/mikro-orm/mikro-orm/issues/4391) - **core:** do not propagate STI sibling property checks to other subtypes ([#&#8203;8688](https://github.com/mikro-orm/mikro-orm/issues/8688)) ([b0b2303](https://github.com/mikro-orm/mikro-orm/commit/b0b2303b98abccaabb976e2431c05c745d4c398d)), closes [#&#8203;8687](https://github.com/mikro-orm/mikro-orm/issues/8687) - **core:** don't re-query empty inverse 1:1 relations on repeated populate ([#&#8203;8627](https://github.com/mikro-orm/mikro-orm/issues/8627)) ([b074921](https://github.com/mikro-orm/mikro-orm/commit/b074921516d0e58ae190688986a4e81b34238323)), closes [#&#8203;8624](https://github.com/mikro-orm/mikro-orm/issues/8624) - **core:** fill extra columns of a composite FK referencing non-PK target columns ([#&#8203;8646](https://github.com/mikro-orm/mikro-orm/issues/8646)) ([14737a2](https://github.com/mikro-orm/mikro-orm/commit/14737a2349c834dbb39e1dc82bd5adf32fb2531c)), closes [#&#8203;8641](https://github.com/mikro-orm/mikro-orm/issues/8641) [#&#8203;8640](https://github.com/mikro-orm/mikro-orm/issues/8640) - **core:** keep unrefreshed properties in the snapshot on partial refresh ([#&#8203;8633](https://github.com/mikro-orm/mikro-orm/issues/8633)) ([254f21f](https://github.com/mikro-orm/mikro-orm/commit/254f21f2450f69e9887b5de17e59237bcbff9eb6)), closes [#&#8203;8632](https://github.com/mikro-orm/mikro-orm/issues/8632) - **core:** mark entities managed when merged via em.merge() ([#&#8203;8666](https://github.com/mikro-orm/mikro-orm/issues/8666)) ([1969694](https://github.com/mikro-orm/mikro-orm/commit/1969694e0b522ca9c4b6b9067c6dc2a3bbac2a71)) - **core:** reject unparseable date strings with ValidationError in assign() ([#&#8203;8658](https://github.com/mikro-orm/mikro-orm/issues/8658)) ([092e0ba](https://github.com/mikro-orm/mikro-orm/commit/092e0ba5e03428ee57a4f60d63e57554899e9b19)), closes [#&#8203;8656](https://github.com/mikro-orm/mikro-orm/issues/8656) - **core:** reuse managed entity in `findOne` when `fields` name an inline embeddable ([#&#8203;8626](https://github.com/mikro-orm/mikro-orm/issues/8626)) ([6b79fad](https://github.com/mikro-orm/mikro-orm/commit/6b79fadc823d05fb80af98a2f4230847ba937018)), closes [#&#8203;8625](https://github.com/mikro-orm/mikro-orm/issues/8625) - **core:** store the database value of the FK in the snapshot set during hydration ([#&#8203;8661](https://github.com/mikro-orm/mikro-orm/issues/8661)) ([a868c92](https://github.com/mikro-orm/mikro-orm/commit/a868c92cb82051bf48ff44f8ca00e04eff3ea8e7)), closes [#&#8203;8657](https://github.com/mikro-orm/mikro-orm/issues/8657) - **core:** treat copies of a custom type instance as the same type in polymorphic embeddables ([#&#8203;8651](https://github.com/mikro-orm/mikro-orm/issues/8651)) ([10a0998](https://github.com/mikro-orm/mikro-orm/commit/10a0998390e36e5a3d22d4d997e234992e702267)), closes [#&#8203;8650](https://github.com/mikro-orm/mikro-orm/issues/8650) - **core:** write a scalar composite FK value to the column referencing the target PK ([#&#8203;8645](https://github.com/mikro-orm/mikro-orm/issues/8645)) ([c9cbb76](https://github.com/mikro-orm/mikro-orm/commit/c9cbb76ec85f817a6032dd25168e94f662a68789)), closes [#&#8203;8644](https://github.com/mikro-orm/mikro-orm/issues/8644) [#&#8203;7764](https://github.com/mikro-orm/mikro-orm/issues/7764) [#&#8203;8640](https://github.com/mikro-orm/mikro-orm/issues/8640) [#&#8203;8641](https://github.com/mikro-orm/mikro-orm/issues/8641) - **mongo:** map property names to field names in the partial index `where` ([#&#8203;8635](https://github.com/mikro-orm/mikro-orm/issues/8635)) ([1dd8144](https://github.com/mikro-orm/mikro-orm/commit/1dd8144f49f0b259873025a0aa629c23ee1e7765)), closes [#&#8203;7593](https://github.com/mikro-orm/mikro-orm/issues/7593) - **mongo:** return the stored version from `em.upsert()` and `em.upsertMany()` ([#&#8203;8623](https://github.com/mikro-orm/mikro-orm/issues/8623)) ([3af6998](https://github.com/mikro-orm/mikro-orm/commit/3af6998b33714cb438bc1fbe9ac94f8a112c2509)), closes [#&#8203;8620](https://github.com/mikro-orm/mikro-orm/issues/8620) - **mssql:** raise the default request timeout to 60s ([#&#8203;8647](https://github.com/mikro-orm/mikro-orm/issues/8647)) ([7ac45dc](https://github.com/mikro-orm/mikro-orm/commit/7ac45dce633e68bbaa0b35db4f1c62e149387313)) - **mysql:** unescape quotes in introspected check constraint expressions ([#&#8203;8639](https://github.com/mikro-orm/mikro-orm/issues/8639)) ([9481b56](https://github.com/mikro-orm/mikro-orm/commit/9481b56dedd29917ec3b7e0cd366bd4208a1afc2)), closes [#&#8203;8485](https://github.com/mikro-orm/mikro-orm/issues/8485) - **oracledb:** keep fractional seconds on datetime values returned via OUT binds ([#&#8203;8621](https://github.com/mikro-orm/mikro-orm/issues/8621)) ([0ab4a51](https://github.com/mikro-orm/mikro-orm/commit/0ab4a514f00be6de3ad1ec6586d2627b84df7a6c)) - **postgres:** don't diff a check over a list of values as an enum ([#&#8203;8653](https://github.com/mikro-orm/mikro-orm/issues/8653)) ([64bd76a](https://github.com/mikro-orm/mikro-orm/commit/64bd76a93c3b7e8310bde43dbedd597964bd0364)), closes [#&#8203;8652](https://github.com/mikro-orm/mikro-orm/issues/8652) - **schema:** do not diff enum items of a non-enum STI discriminator column ([#&#8203;8689](https://github.com/mikro-orm/mikro-orm/issues/8689)) ([e972fbd](https://github.com/mikro-orm/mikro-orm/commit/e972fbdaa5edb1a7542f2225f4f33fe3b46cf52a)) - **sql:** bump the version property when `upsert()` updates an existing row ([#&#8203;8620](https://github.com/mikro-orm/mikro-orm/issues/8620)) ([303b051](https://github.com/mikro-orm/mikro-orm/commit/303b051ec9897d58bb0d03875be99149ff8a992b)) - **sql:** compare bigint defaults by value ([#&#8203;8631](https://github.com/mikro-orm/mikro-orm/issues/8631)) ([4c740be](https://github.com/mikro-orm/mikro-orm/commit/4c740beb5d370ab655d888d00c5e9d1f67c2737f)), closes [#&#8203;8132](https://github.com/mikro-orm/mikro-orm/issues/8132) [#&#8203;8132](https://github.com/mikro-orm/mikro-orm/issues/8132) [#&#8203;7796](https://github.com/mikro-orm/mikro-orm/issues/7796) - **sql:** merge every column of a composite FK on upsert conflict ([#&#8203;8648](https://github.com/mikro-orm/mikro-orm/issues/8648)) ([0a2d093](https://github.com/mikro-orm/mikro-orm/commit/0a2d0931cbdaa0e77713ea6955285e9e7452d213)), closes [#&#8203;8643](https://github.com/mikro-orm/mikro-orm/issues/8643) [#&#8203;8642](https://github.com/mikro-orm/mikro-orm/issues/8642) - **sql:** reject non-string order directions in `orderBy` ([#&#8203;8680](https://github.com/mikro-orm/mikro-orm/issues/8680)) ([87baf9b](https://github.com/mikro-orm/mikro-orm/commit/87baf9b2b2c7ae0ed6f3895ea1aefefac46c0e72)) - **sql:** run joined `qb.update()` and `qb.delete()` as write queries in `execute()` ([#&#8203;8628](https://github.com/mikro-orm/mikro-orm/issues/8628)) ([a70a72a](https://github.com/mikro-orm/mikro-orm/commit/a70a72a7936e258f52a462c5dc2688b03466616c)) - **sql:** skip generated columns in `em.clone()` and `qb.insertFrom()` ([#&#8203;8638](https://github.com/mikro-orm/mikro-orm/issues/8638)) ([1ec3972](https://github.com/mikro-orm/mikro-orm/commit/1ec3972f20ddbc8d13c6b9440fd9d725c4f9c92c)) ##### Performance Improvements - **core:** avoid deopt loop when cloning query builder state ([#&#8203;8686](https://github.com/mikro-orm/mikro-orm/issues/8686)) ([20ea3cb](https://github.com/mikro-orm/mikro-orm/commit/20ea3cb2ad18f74238dab56eed456ff2aa0d3115)) - **core:** keep scalar properties as plain data properties ([#&#8203;8671](https://github.com/mikro-orm/mikro-orm/issues/8671)) ([e312571](https://github.com/mikro-orm/mikro-orm/commit/e312571bc5071a7df8ed41bbb48a416e739847b6)), closes [#&#8203;6982](https://github.com/mikro-orm/mikro-orm/issues/6982) - **core:** skip re-snapshotting entities freshly mapped via em.map() ([#&#8203;8676](https://github.com/mikro-orm/mikro-orm/issues/8676)) ([e5e655c](https://github.com/mikro-orm/mikro-orm/commit/e5e655cf02d5f0eb7c55356840b768e1418c4e3c)) - **core:** use Object.keys in getObjectQueryKeys ([#&#8203;8672](https://github.com/mikro-orm/mikro-orm/issues/8672)) ([c6c1903](https://github.com/mikro-orm/mikro-orm/commit/c6c1903d8512fc69b8d83fd4f2b6e15b30d26d13)) - **postgres:** escape string literals in linear time ([#&#8203;8659](https://github.com/mikro-orm/mikro-orm/issues/8659)) ([2929460](https://github.com/mikro-orm/mikro-orm/commit/2929460b9876e109432ed42d904673d2a3b7d689)), closes [#&#8203;8001](https://github.com/mikro-orm/mikro-orm/issues/8001) ### [`v7.2.8`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#728-2026-11-06) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.7...v7.2.8) ##### Bug Fixes - **core:** apply the entity default `orderBy` in `em.stream()` and `em.findOne()` ([#&#8203;8612](https://github.com/mikro-orm/mikro-orm/issues/8612)) ([840bc49](https://github.com/mikro-orm/mikro-orm/commit/840bc49f24b1513251c5f4be1502e016d6ee663b)), closes [#&#8203;7133](https://github.com/mikro-orm/mikro-orm/issues/7133) [#&#8203;8503](https://github.com/mikro-orm/mikro-orm/issues/8503) - **core:** handle non-JSON query values in result cache and dataloader keys ([#&#8203;8598](https://github.com/mikro-orm/mikro-orm/issues/8598)) ([def0462](https://github.com/mikro-orm/mikro-orm/commit/def0462ede8fb544fa3e891ed8dc61e2589ef018)) - **core:** include regexp and raw fragment params in result cache keys ([#&#8203;8597](https://github.com/mikro-orm/mikro-orm/issues/8597)) ([c4d5e78](https://github.com/mikro-orm/mikro-orm/commit/c4d5e78240c7207a14103895bffe605731a015ea)) - **core:** respect FK `deleteRule` when removing an entity with loaded 1:M collections ([#&#8203;8608](https://github.com/mikro-orm/mikro-orm/issues/8608)) ([9dff7c8](https://github.com/mikro-orm/mikro-orm/commit/9dff7c8b5db87e638e24270445d3ae6112e61bd4)), closes [#&#8203;8606](https://github.com/mikro-orm/mikro-orm/issues/8606) - **migrations:** keep table partitioning in the schema snapshot ([#&#8203;8601](https://github.com/mikro-orm/mikro-orm/issues/8601)) ([03f85d8](https://github.com/mikro-orm/mikro-orm/commit/03f85d8d6070204ae3602d242c9736e1d7132daf)), closes [#&#8203;7816](https://github.com/mikro-orm/mikro-orm/issues/7816) - **mongo:** convert `$re` inside `$elemMatch` and keep `$re` keys in entity data ([#&#8203;8611](https://github.com/mikro-orm/mikro-orm/issues/8611)) ([47ca87b](https://github.com/mikro-orm/mikro-orm/commit/47ca87baa59d8b5d1bc18c0953fe7f7ca66c90cf)), closes [#&#8203;8599](https://github.com/mikro-orm/mikro-orm/issues/8599) - **mongo:** convert `$re` on renamed fields, next to other operators and under `$not` ([#&#8203;8599](https://github.com/mikro-orm/mikro-orm/issues/8599)) ([885bed8](https://github.com/mikro-orm/mikro-orm/commit/885bed81bec9ae2764e504ce8b6eb531df5caa01)) - **mongo:** limit inverse M:N populate per parent instead of per owner array ([#&#8203;8618](https://github.com/mikro-orm/mikro-orm/issues/8618)) ([79e817a](https://github.com/mikro-orm/mikro-orm/commit/79e817a99233d9e3d06597bbb27a2e1f5c0bc9b7)) - **mssql:** handle composite PK `$in`/`$nin` with an empty list or multiple tuples ([#&#8203;8609](https://github.com/mikro-orm/mikro-orm/issues/8609)) ([badc189](https://github.com/mikro-orm/mikro-orm/commit/badc18913849e938dd593681013ec63ca17bc6d2)) - **mysql:** escape and parse enum items containing quotes or commas ([#&#8203;8614](https://github.com/mikro-orm/mikro-orm/issues/8614)) ([cdbc0cb](https://github.com/mikro-orm/mikro-orm/commit/cdbc0cb133f5bd0849a8e3233304b3a297370f76)), closes [#&#8203;8554](https://github.com/mikro-orm/mikro-orm/issues/8554) - **sql:** keep `$or`, `$and` and `$not` in the upsert conflict condition ([#&#8203;8602](https://github.com/mikro-orm/mikro-orm/issues/8602)) ([19d05e4](https://github.com/mikro-orm/mikro-orm/commit/19d05e4b8d881d4007e21e1a8e8097c1218e46fa)), closes [#&#8203;8600](https://github.com/mikro-orm/mikro-orm/issues/8600) - **sql:** order by a composite relation key in paginated queries and with an alias prefix ([#&#8203;8610](https://github.com/mikro-orm/mikro-orm/issues/8610)) ([4b837e4](https://github.com/mikro-orm/mikro-orm/commit/4b837e4ac0facee78f967587df1f29bc9bbc8058)) - **sql:** quote index names in `using` hints and validate `using` on `em.count()` ([#&#8203;8613](https://github.com/mikro-orm/mikro-orm/issues/8613)) ([35fe690](https://github.com/mikro-orm/mikro-orm/commit/35fe690bf45ce72c4b86acb15d6de06fdbd09e8a)) ##### Performance Improvements - **core:** propagate serialization context along the serialized path only ([#&#8203;8619](https://github.com/mikro-orm/mikro-orm/issues/8619)) ([7816e11](https://github.com/mikro-orm/mikro-orm/commit/7816e11adc0e0ee30f3c9d12bd58e2fed04bdc7e)), closes [#&#8203;8616](https://github.com/mikro-orm/mikro-orm/issues/8616) ### [`v7.2.7`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#727-2026-11-04) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.6...v7.2.7) ##### Bug Fixes - **core:** don't convert a sub-query value with the property's custom type ([#&#8203;8574](https://github.com/mikro-orm/mikro-orm/issues/8574)) ([6843a82](https://github.com/mikro-orm/mikro-orm/commit/6843a82bdd32ee80b805e85b8c66808e72ce76b2)), closes [#&#8203;8572](https://github.com/mikro-orm/mikro-orm/issues/8572) - **core:** don't treat record types as `LazyRef` ([#&#8203;8564](https://github.com/mikro-orm/mikro-orm/issues/8564)) ([0aeceac](https://github.com/mikro-orm/mikro-orm/commit/0aeceacb899eb6c3d7f13d8e3a6b6ac3a689f219)) - **core:** keep class instances by reference when merging the config ([#&#8203;8496](https://github.com/mikro-orm/mikro-orm/issues/8496)) ([d11862d](https://github.com/mikro-orm/mikro-orm/commit/d11862d858d9a80f9e84185800f798f0f9a76608)), closes [#&#8203;8495](https://github.com/mikro-orm/mikro-orm/issues/8495) - **core:** respect the entity default `orderBy` in `em.findByCursor()` ([#&#8203;8503](https://github.com/mikro-orm/mikro-orm/issues/8503)) ([8d789d8](https://github.com/mikro-orm/mikro-orm/commit/8d789d860d40485381648afe244182e57a703e09)), closes [#&#8203;7133](https://github.com/mikro-orm/mikro-orm/issues/7133) - **core:** use distinct pivot columns for M:N within one STI hierarchy ([#&#8203;8592](https://github.com/mikro-orm/mikro-orm/issues/8592)) ([6b5a605](https://github.com/mikro-orm/mikro-orm/commit/6b5a605d4f2ad58bf09326efa5189e2bc09d4654)) - **postgres:** compare interval literals in generated expressions by value ([#&#8203;8585](https://github.com/mikro-orm/mikro-orm/issues/8585)) ([e19482b](https://github.com/mikro-orm/mikro-orm/commit/e19482b80901cad517a92583ab978d85eaf2f2bb)), closes [#&#8203;8482](https://github.com/mikro-orm/mikro-orm/issues/8482) [#&#8203;8481](https://github.com/mikro-orm/mikro-orm/issues/8481) - **postgres:** keep element type modifiers when introspecting array columns ([#&#8203;8498](https://github.com/mikro-orm/mikro-orm/issues/8498)) ([08a55c7](https://github.com/mikro-orm/mikro-orm/commit/08a55c760b9491300fa45a7164d122ba31e707b6)), closes [#&#8203;8497](https://github.com/mikro-orm/mikro-orm/issues/8497) - **postgres:** map restrict violation errors to `ForeignKeyConstraintViolationException` ([#&#8203;8558](https://github.com/mikro-orm/mikro-orm/issues/8558)) ([4d9178f](https://github.com/mikro-orm/mikro-orm/commit/4d9178f18cf356860a28c3bc176a4fc927be7164)) - **schema:** reject combining `deferMode` with `where` on unique indexes ([#&#8203;8514](https://github.com/mikro-orm/mikro-orm/issues/8514)) ([1bc4d12](https://github.com/mikro-orm/mikro-orm/commit/1bc4d12ebed488d4801345cf0fac8ac81990be69)), closes [#&#8203;8512](https://github.com/mikro-orm/mikro-orm/issues/8512) - **sql:** convert driver exceptions on the QueryBuilder read path ([#&#8203;8584](https://github.com/mikro-orm/mikro-orm/issues/8584)) ([fa08c33](https://github.com/mikro-orm/mikro-orm/commit/fa08c337fb83244da8caecf307fc12de7fe3899c)), closes [#&#8203;8577](https://github.com/mikro-orm/mikro-orm/issues/8577) - **sql:** emit valid SQL for `$in`/`$nin` on array columns ([#&#8203;8502](https://github.com/mikro-orm/mikro-orm/issues/8502)) ([2ab63ff](https://github.com/mikro-orm/mikro-orm/commit/2ab63ff214f0451cc76a74b97553cc1cbad1f4b0)), closes [#&#8203;8454](https://github.com/mikro-orm/mikro-orm/issues/8454) - **sql:** handle `$not` nested under collection properties ([#&#8203;8471](https://github.com/mikro-orm/mikro-orm/issues/8471)) ([fee6fc5](https://github.com/mikro-orm/mikro-orm/commit/fee6fc51eced42c60293695c0def3dce208b6549)), closes [#&#8203;8468](https://github.com/mikro-orm/mikro-orm/issues/8468) - **sqlite:** fail fast when an entity declares a schema that is not attached ([#&#8203;8583](https://github.com/mikro-orm/mikro-orm/issues/8583)) ([1cbfa26](https://github.com/mikro-orm/mikro-orm/commit/1cbfa2666d9de02f7e3dcad972788ad789349494)) - **sqlite:** keep child rows when a migration rebuilds a table ([#&#8203;8510](https://github.com/mikro-orm/mikro-orm/issues/8510)) ([0a3aa8a](https://github.com/mikro-orm/mikro-orm/commit/0a3aa8a9683a61c8537ff1ad651138f7f34e5976)), closes [#&#8203;6300](https://github.com/mikro-orm/mikro-orm/issues/6300) [#&#8203;6358](https://github.com/mikro-orm/mikro-orm/issues/6358) - **sqlite:** read the definition of the first column when introspecting a table ([#&#8203;8518](https://github.com/mikro-orm/mikro-orm/issues/8518)) ([b0f843e](https://github.com/mikro-orm/mikro-orm/commit/b0f843ed3b4c90a85a2ddefac6a0e88aa9f59a04)) - **sql:** keep aliased FK columns when they match a joined relation name ([#&#8203;8573](https://github.com/mikro-orm/mikro-orm/issues/8573)) ([0175b57](https://github.com/mikro-orm/mikro-orm/commit/0175b57406858a5c2763218fdd44043705d04d55)), closes [#&#8203;8571](https://github.com/mikro-orm/mikro-orm/issues/8571) - **sql:** resolve inherited columns in TPT child formulas to the parent alias ([#&#8203;8506](https://github.com/mikro-orm/mikro-orm/issues/8506)) ([e02bb16](https://github.com/mikro-orm/mikro-orm/commit/e02bb16952ad4e477bcb5684ebf8e3119efd7d3e)), closes [#&#8203;8492](https://github.com/mikro-orm/mikro-orm/issues/8492) - **sql:** return one primary key per row from em.insertMany ([#&#8203;8582](https://github.com/mikro-orm/mikro-orm/issues/8582)) ([0d3333a](https://github.com/mikro-orm/mikro-orm/commit/0d3333ab11b019a0c6461676838933f7ad92d806)), closes [#&#8203;8575](https://github.com/mikro-orm/mikro-orm/issues/8575) ##### Features - **core:** embed a query builder passed as a raw fragment param as a sub-query ([#&#8203;8590](https://github.com/mikro-orm/mikro-orm/issues/8590)) ([64763fd](https://github.com/mikro-orm/mikro-orm/commit/64763fda6e94bb12b74054ac9eaaf27ac1290a19)), closes [#&#8203;8570](https://github.com/mikro-orm/mikro-orm/issues/8570) ##### Performance Improvements - **core:** avoid quadratic delete-early matching in computeChangeSets ([#&#8203;8580](https://github.com/mikro-orm/mikro-orm/issues/8580)) ([2de826a](https://github.com/mikro-orm/mikro-orm/commit/2de826ad727f1df0c7c73dd1d8175f41b5c47737)), closes [#&#8203;8579](https://github.com/mikro-orm/mikro-orm/issues/8579) [#&#8203;8579](https://github.com/mikro-orm/mikro-orm/issues/8579) - **core:** match serializer fields and populate paths by first segment ([#&#8203;8464](https://github.com/mikro-orm/mikro-orm/issues/8464)) ([059a9e5](https://github.com/mikro-orm/mikro-orm/commit/059a9e575c7e250a93df02c9cda9cfd1df095238)) ### [`v7.2.6`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#726-2026-10-31) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.5...v7.2.6) ##### Bug Fixes - **cli:** report a configured TS config path skipped without TS support ([#&#8203;8537](https://github.com/mikro-orm/mikro-orm/issues/8537)) ([c9951e2](https://github.com/mikro-orm/mikro-orm/commit/c9951e2e45aa819917e101cbabeeeeea9d9451df)), closes [#&#8203;8531](https://github.com/mikro-orm/mikro-orm/issues/8531) - **core:** escape backslashes in string default values on the MySQL family ([#&#8203;8554](https://github.com/mikro-orm/mikro-orm/issues/8554)) ([a69516e](https://github.com/mikro-orm/mikro-orm/commit/a69516ea21476b1b30cace5b62798ee20bdd15d8)), closes [#&#8203;8553](https://github.com/mikro-orm/mikro-orm/issues/8553) [#&#8203;8553](https://github.com/mikro-orm/mikro-orm/issues/8553) - **core:** keep the options of property-level indexes and uniques ([#&#8203;8491](https://github.com/mikro-orm/mikro-orm/issues/8491)) ([c343f42](https://github.com/mikro-orm/mikro-orm/commit/c343f42d334f2e315bcd31698adb50965501c772)), closes [#&#8203;8488](https://github.com/mikro-orm/mikro-orm/issues/8488) - **core:** map MSSQL date results to strings so loaded entities are not dirty ([d16b6ab](https://github.com/mikro-orm/mikro-orm/commit/d16b6abb6947d83310cafed6d29dddacd46cc9f1)), closes [#&#8203;8539](https://github.com/mikro-orm/mikro-orm/issues/8539) - **core:** resolve circular type inference in defineEntity for non-inline filters ([#&#8203;8479](https://github.com/mikro-orm/mikro-orm/issues/8479)) ([f4e9f54](https://github.com/mikro-orm/mikro-orm/commit/f4e9f54301ebd42b3e21c1d78c4f816630c48c7a)), closes [#&#8203;7441](https://github.com/mikro-orm/mikro-orm/issues/7441) [#&#8203;8478](https://github.com/mikro-orm/mikro-orm/issues/8478) - **core:** skip scalars of uninitialized references in `em.refresh()` ([#&#8203;8444](https://github.com/mikro-orm/mikro-orm/issues/8444)) ([f231794](https://github.com/mikro-orm/mikro-orm/commit/f2317948b1caf19d3820da3a1d44ec483bc06b92)), closes [#&#8203;8413](https://github.com/mikro-orm/mikro-orm/issues/8413) [#&#8203;8442](https://github.com/mikro-orm/mikro-orm/issues/8442) - **core:** support same-named properties of different kinds in polymorphic embeddables ([#&#8203;8440](https://github.com/mikro-orm/mikro-orm/issues/8440)) ([72ff876](https://github.com/mikro-orm/mikro-orm/commit/72ff8763c97e3d70eee080bcb9d84c312adc8ca5)), closes [#&#8203;8438](https://github.com/mikro-orm/mikro-orm/issues/8438) - **core:** unwrap references when checking nested partial fields in populate ([#&#8203;8549](https://github.com/mikro-orm/mikro-orm/issues/8549)) ([3237c58](https://github.com/mikro-orm/mikro-orm/commit/3237c581bbca5e490b598fc35f351e5a5c007644)), closes [#&#8203;8548](https://github.com/mikro-orm/mikro-orm/issues/8548) - **mssql:** keep composite foreign key columns paired when introspecting ([#&#8203;8449](https://github.com/mikro-orm/mikro-orm/issues/8449)) ([690e734](https://github.com/mikro-orm/mikro-orm/commit/690e7344dd92efb44ef7cbd1d7a51cb896c92ad3)) - **mssql:** write JSON values as Unicode literals ([#&#8203;8542](https://github.com/mikro-orm/mikro-orm/issues/8542)) ([0316a53](https://github.com/mikro-orm/mikro-orm/commit/0316a53fc07a22dea7b8b4f0a67e3b51fbb6b2ce)), closes [#&#8203;8541](https://github.com/mikro-orm/mikro-orm/issues/8541) - **mysql:** handle string defaults on text and blob columns ([#&#8203;8485](https://github.com/mikro-orm/mikro-orm/issues/8485)) ([4df522c](https://github.com/mikro-orm/mikro-orm/commit/4df522ca3d54a2e5d6c9c909bcc268793e6becea)) - **mysql:** map generated ids of a batch insert that mixes explicit and generated primary keys ([#&#8203;8475](https://github.com/mikro-orm/mikro-orm/issues/8475)) ([85652ae](https://github.com/mikro-orm/mikro-orm/commit/85652aead73a82d327243a2e0040533a3f91ef44)) - **pglite:** reject a commit of an aborted transaction ([#&#8203;8552](https://github.com/mikro-orm/mikro-orm/issues/8552)) ([c7b0de4](https://github.com/mikro-orm/mikro-orm/commit/c7b0de4127efa7f89c5e4d76c49a7c3d164166cf)), closes [#&#8203;8499](https://github.com/mikro-orm/mikro-orm/issues/8499) [#&#8203;8550](https://github.com/mikro-orm/mikro-orm/issues/8550) - **postgres:** match index columns as whole items when introspecting their sort order ([#&#8203;8490](https://github.com/mikro-orm/mikro-orm/issues/8490)) ([2bff5a0](https://github.com/mikro-orm/mikro-orm/commit/2bff5a0ef99f90b9828c1addfd1cd2d1c7fcb1ed)), closes [#&#8203;8489](https://github.com/mikro-orm/mikro-orm/issues/8489) - **postgresql:** reject a commit PostgreSQL answered with ROLLBACK ([#&#8203;8499](https://github.com/mikro-orm/mikro-orm/issues/8499)) ([743fafd](https://github.com/mikro-orm/mikro-orm/commit/743fafd702db1c8c9ae79699b9106376e25b4aba)), closes [#&#8203;8476](https://github.com/mikro-orm/mikro-orm/issues/8476) - **postgresql:** release pooled client when its connection drops mid-transaction ([#&#8203;8448](https://github.com/mikro-orm/mikro-orm/issues/8448)) ([ada68f8](https://github.com/mikro-orm/mikro-orm/commit/ada68f831908050078b0a5856518993f132549c7)), closes [kysely-org/kysely#1990](https://github.com/kysely-org/kysely/issues/1990) [#&#8203;8069](https://github.com/mikro-orm/mikro-orm/issues/8069) [#&#8203;8447](https://github.com/mikro-orm/mikro-orm/issues/8447) - **schema:** align introspected string defaults with the doubled-quote form ([#&#8203;8553](https://github.com/mikro-orm/mikro-orm/issues/8553)) ([70946fb](https://github.com/mikro-orm/mikro-orm/commit/70946fbe1865e1f9b5503035faedadace2f67c49)), closes [#&#8203;8517](https://github.com/mikro-orm/mikro-orm/issues/8517) - **schema:** treat index columns without options as default options when diffing ([#&#8203;8450](https://github.com/mikro-orm/mikro-orm/issues/8450)) ([d5d9ef8](https://github.com/mikro-orm/mikro-orm/commit/d5d9ef85f86b1012cddf083fab262fb29fa32c10)) - **sql:** avoid converting custom types twice in collection operator subqueries ([#&#8203;8470](https://github.com/mikro-orm/mikro-orm/issues/8470)) ([85154fb](https://github.com/mikro-orm/mikro-orm/commit/85154fb99d2da82c1a7ca57e9555363ce3f00062)), closes [#&#8203;8467](https://github.com/mikro-orm/mikro-orm/issues/8467) - **sql:** refuse to commit when rolling back to a savepoint failed ([#&#8203;8462](https://github.com/mikro-orm/mikro-orm/issues/8462)) ([1610b60](https://github.com/mikro-orm/mikro-orm/commit/1610b6005b9ea0e41d7c2808c33bb8603b1d041b)), closes [#&#8203;8458](https://github.com/mikro-orm/mikro-orm/issues/8458) - **sql:** reject forbidden sequences in query comments ([#&#8203;8536](https://github.com/mikro-orm/mikro-orm/issues/8536)) ([63c21b0](https://github.com/mikro-orm/mikro-orm/commit/63c21b031433b86c717bb0c91253a6f08d49cebb)) - **sql:** select a formula once when a column needs SQL conversion ([#&#8203;8494](https://github.com/mikro-orm/mikro-orm/issues/8494)) ([3887c22](https://github.com/mikro-orm/mikro-orm/commit/3887c2245e318e019bfa5a9869d778f09eb14e5a)), closes [#&#8203;8492](https://github.com/mikro-orm/mikro-orm/issues/8492) [#&#8203;8493](https://github.com/mikro-orm/mikro-orm/issues/8493) - **sql:** select the right column in joined loading when a property is named like another column ([#&#8203;8527](https://github.com/mikro-orm/mikro-orm/issues/8527)) ([c3563d7](https://github.com/mikro-orm/mikro-orm/commit/c3563d7e11d5925fb760d169aa751aa07bd06ad1)), closes [#&#8203;8526](https://github.com/mikro-orm/mikro-orm/issues/8526) [#&#8203;8292](https://github.com/mikro-orm/mikro-orm/issues/8292) - **sql:** use the persisted JSON keys for indexes on object embeddable properties ([#&#8203;8487](https://github.com/mikro-orm/mikro-orm/issues/8487)) ([556bb2f](https://github.com/mikro-orm/mikro-orm/commit/556bb2fe1f9c3dcb921f188bb35129a1e6fa2508)), closes [#&#8203;8486](https://github.com/mikro-orm/mikro-orm/issues/8486) ##### Performance Improvements - **core:** avoid quadratic lookups in metadata discovery ([#&#8203;8533](https://github.com/mikro-orm/mikro-orm/issues/8533)) ([eeaaa06](https://github.com/mikro-orm/mikro-orm/commit/eeaaa060e184e11ced1a206d85cc0ab2fc5ac6f4)) - **core:** skip merging a joined row the entity already holds ([#&#8203;8466](https://github.com/mikro-orm/mikro-orm/issues/8466)) ([e927926](https://github.com/mikro-orm/mikro-orm/commit/e9279263d95f99f5aef136792fad7788740a5d6b)), closes [#&#8203;8460](https://github.com/mikro-orm/mikro-orm/issues/8460) [#&#8203;8465](https://github.com/mikro-orm/mikro-orm/issues/8465) [#&#8203;8465](https://github.com/mikro-orm/mikro-orm/issues/8465) [#&#8203;8460](https://github.com/mikro-orm/mikro-orm/issues/8460) - **sql:** resolve a joined relation's mapped columns once per query ([#&#8203;8465](https://github.com/mikro-orm/mikro-orm/issues/8465)) ([8e2b092](https://github.com/mikro-orm/mikro-orm/commit/8e2b09286ecf2ecf34b694207a083f47db80e22c)), closes [#&#8203;8466](https://github.com/mikro-orm/mikro-orm/issues/8466) [#&#8203;8460](https://github.com/mikro-orm/mikro-orm/issues/8460) ### [`v7.2.5`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#725-2026-10-09) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.4...v7.2.5) ##### Bug Fixes - **core:** fix custom types and `serializedName` properties in `em.refresh()` ([#&#8203;8413](https://github.com/mikro-orm/mikro-orm/issues/8413)) ([7463cb2](https://github.com/mikro-orm/mikro-orm/commit/7463cb2197119b2918d0194c882ab48da387a0eb)), closes [#&#8203;8410](https://github.com/mikro-orm/mikro-orm/issues/8410) - **core:** hydrate STI object embeddables declared with different classes via the root ([#&#8203;8418](https://github.com/mikro-orm/mikro-orm/issues/8418)) ([863195c](https://github.com/mikro-orm/mikro-orm/commit/863195ca7e9a813b7ba7ff2d8e3d1fdbd1150df4)), closes [#&#8203;8417](https://github.com/mikro-orm/mikro-orm/issues/8417) - **core:** keep null custom type values in upsert results ([#&#8203;8428](https://github.com/mikro-orm/mikro-orm/issues/8428)) ([1a7a9c0](https://github.com/mikro-orm/mikro-orm/commit/1a7a9c06c3d16bd18fe53cf4b4ce565f218d8901)), closes [#&#8203;8429](https://github.com/mikro-orm/mikro-orm/issues/8429) [#&#8203;8427](https://github.com/mikro-orm/mikro-orm/issues/8427) - **core:** order flush around relations to TPT subclasses ([#&#8203;8422](https://github.com/mikro-orm/mikro-orm/issues/8422)) ([3fd72ce](https://github.com/mikro-orm/mikro-orm/commit/3fd72cefb34c5d3bd192024fdccc986f1c8980ea)) - **schema:** respect `ignoreRoutines` and `ignoreTriggers` in down migrations ([#&#8203;8416](https://github.com/mikro-orm/mikro-orm/issues/8416)) ([c28a2ec](https://github.com/mikro-orm/mikro-orm/commit/c28a2ecbbfb17983478d811e7cb533281cb80dff)) - **sql:** match STI subclasses when joining into an STI entity ([#&#8203;8425](https://github.com/mikro-orm/mikro-orm/issues/8425)) ([74a0ba0](https://github.com/mikro-orm/mikro-orm/commit/74a0ba0f27dc44b09bc16c2943a42a9088201997)), closes [#&#8203;8424](https://github.com/mikro-orm/mikro-orm/issues/8424) - **sql:** persist conflicting STI properties via the row subtype's property ([#&#8203;8423](https://github.com/mikro-orm/mikro-orm/issues/8423)) ([234a84e](https://github.com/mikro-orm/mikro-orm/commit/234a84e82dd72b995abf8dce5e5f64529826cb76)) - **sql:** prioritize formula over convertToJSValueSQL in joined queries ([#&#8203;8415](https://github.com/mikro-orm/mikro-orm/issues/8415)) ([404f04c](https://github.com/mikro-orm/mikro-orm/commit/404f04ca0e8da920f802ef7cd03c12a1c78392df)), closes [#&#8203;8414](https://github.com/mikro-orm/mikro-orm/issues/8414) - **sql:** select formulas of TPT descendants in polymorphic loads ([#&#8203;8419](https://github.com/mikro-orm/mikro-orm/issues/8419)) ([c65163b](https://github.com/mikro-orm/mikro-orm/commit/c65163b3dbc18ecd37cdc0046aeb4e899bdf78a5)) ### [`v7.2.4`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#724-2026-10-06) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.3...v7.2.4) ##### Bug Fixes - **core:** check the version in batch updates ([#&#8203;8381](https://github.com/mikro-orm/mikro-orm/issues/8381)) ([5156bc4](https://github.com/mikro-orm/mikro-orm/commit/5156bc48e4e66714a4bc434dd46d4e9a47f1d743)), closes [#&#8203;8380](https://github.com/mikro-orm/mikro-orm/issues/8380) - **core:** don't infer `defineEntity` properties from index `where` and key options ([#&#8203;8395](https://github.com/mikro-orm/mikro-orm/issues/8395)) ([dca7734](https://github.com/mikro-orm/mikro-orm/commit/dca77348c2ce4b8eb762614f500d9860d5d374bf)), closes [#&#8203;8394](https://github.com/mikro-orm/mikro-orm/issues/8394) - **core:** match reloaded rows in `upsertMany` when inputs use different unique keys ([#&#8203;8396](https://github.com/mikro-orm/mikro-orm/issues/8396)) ([20c571d](https://github.com/mikro-orm/mikro-orm/commit/20c571d307005e8aee024cbfcf31f294ff1fdcda)) - **core:** support glob characters in the project path ([#&#8203;8390](https://github.com/mikro-orm/mikro-orm/issues/8390)) ([f2c02f0](https://github.com/mikro-orm/mikro-orm/commit/f2c02f004ab3230d9e116f69992994cbcc9fae7d)), closes [#&#8203;1073](https://github.com/mikro-orm/mikro-orm/issues/1073) - **core:** upsert rows with a null unique key without touching unrelated rows ([#&#8203;8397](https://github.com/mikro-orm/mikro-orm/issues/8397)) ([bb4aa99](https://github.com/mikro-orm/mikro-orm/commit/bb4aa996cc703d72bb4b76c35c7877000d0d6a58)), closes [#&#8203;8393](https://github.com/mikro-orm/mikro-orm/issues/8393) - **mongo:** insert on upsert without a unique value ([#&#8203;8398](https://github.com/mikro-orm/mikro-orm/issues/8398)) ([1459d92](https://github.com/mikro-orm/mikro-orm/commit/1459d9217c17670ee98f8b0d80722e3fc5f405da)) - **sqlite:** respect `createForeignKeyConstraints: false` in schema create and update ([#&#8203;8383](https://github.com/mikro-orm/mikro-orm/issues/8383)) ([656fac7](https://github.com/mikro-orm/mikro-orm/commit/656fac7d48b7853e8cde6d490b19d900ef0876d8)), closes [#&#8203;8382](https://github.com/mikro-orm/mikro-orm/issues/8382) ##### Performance Improvements - **core:** avoid per-owner scans on the owning side of M:N ([#&#8203;8392](https://github.com/mikro-orm/mikro-orm/issues/8392)) ([39599a7](https://github.com/mikro-orm/mikro-orm/commit/39599a7dab33d8f319df687f678b99b2226c32a2)), closes [#&#8203;8391](https://github.com/mikro-orm/mikro-orm/issues/8391) [#&#8203;8391](https://github.com/mikro-orm/mikro-orm/issues/8391) - **core:** group inverse M:N children in one pass ([#&#8203;8391](https://github.com/mikro-orm/mikro-orm/issues/8391)) ([fa2eefa](https://github.com/mikro-orm/mikro-orm/commit/fa2eefa456b54e68cf3a45379d17befe06ca9e3a)) - **core:** group reloaded rows by condition values in upsertMany ([#&#8203;8393](https://github.com/mikro-orm/mikro-orm/issues/8393)) ([33236ce](https://github.com/mikro-orm/mikro-orm/commit/33236ce0c806d29737c28962953cdfe42fc42f67)) ### [`v7.2.3`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#723-2026-09-30) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.2...v7.2.3) ##### Bug Fixes - **core:** detect changes to decimal strings beyond double precision ([#&#8203;8368](https://github.com/mikro-orm/mikro-orm/issues/8368)) ([6ba4d2b](https://github.com/mikro-orm/mikro-orm/commit/6ba4d2b9270024cd158b3087f46758a41e8ff21c)), closes [high-precision](https://github.com/hi/issues/precision) - **mssql:** skip TPT child tables when reseeding identities in `clear()` ([#&#8203;8358](https://github.com/mikro-orm/mikro-orm/issues/8358)) ([7a3614e](https://github.com/mikro-orm/mikro-orm/commit/7a3614e37a2503f99e426c6d59eaf0038b34e6b6)) - **oracle:** introspect primary keys so the schema diff can restore and change them ([#&#8203;8357](https://github.com/mikro-orm/mikro-orm/issues/8357)) ([1a5c4f0](https://github.com/mikro-orm/mikro-orm/commit/1a5c4f04bab5fbfdb1f207c3470c92e23a687f04)) - **oracle:** return non-PK autoincrement and generated columns after inserts ([#&#8203;8359](https://github.com/mikro-orm/mikro-orm/issues/8359)) ([1662688](https://github.com/mikro-orm/mikro-orm/commit/1662688770e65ae87ba481d190fc7f9a46b42e44)) - **postgres:** don't restore stale inbound FKs when repartitioning a table ([#&#8203;8371](https://github.com/mikro-orm/mikro-orm/issues/8371)) ([5c15854](https://github.com/mikro-orm/mikro-orm/commit/5c1585472b6629517ca70b82ea6e45caba6d9eca)), closes [#&#8203;8369](https://github.com/mikro-orm/mikro-orm/issues/8369) - **postgres:** drop unique index expressions via `drop index` instead of `drop constraint` ([#&#8203;8365](https://github.com/mikro-orm/mikro-orm/issues/8365)) ([d798236](https://github.com/mikro-orm/mikro-orm/commit/d7982369e14c4ca81a472604639ae6f531938412)), closes [#&#8203;8363](https://github.com/mikro-orm/mikro-orm/issues/8363) - **postgres:** leave list/range partitions not declared in metadata unmanaged ([#&#8203;8370](https://github.com/mikro-orm/mikro-orm/issues/8370)) ([54d855b](https://github.com/mikro-orm/mikro-orm/commit/54d855b0bc592e880a5bf85872a1230624067fda)), closes [#&#8203;8362](https://github.com/mikro-orm/mikro-orm/issues/8362) - **postgres:** normalize double precision casts and `between` in check constraint diffs ([#&#8203;8366](https://github.com/mikro-orm/mikro-orm/issues/8366)) ([38cb8fc](https://github.com/mikro-orm/mikro-orm/commit/38cb8fc7c5371f0bc792071f4951def6eb771fbd)), closes [#&#8203;8361](https://github.com/mikro-orm/mikro-orm/issues/8361) - **postgres:** respect identity options when diffing and rendering columns ([#&#8203;8351](https://github.com/mikro-orm/mikro-orm/issues/8351)) ([77ad8e3](https://github.com/mikro-orm/mikro-orm/commit/77ad8e3045e2809e0eec4cbca0ab8904290478ff)), closes [#&#8203;8350](https://github.com/mikro-orm/mikro-orm/issues/8350) - **sql:** declare the primary key once when replacing it with a new autoincrement column ([#&#8203;8354](https://github.com/mikro-orm/mikro-orm/issues/8354)) ([5c9dfab](https://github.com/mikro-orm/mikro-orm/commit/5c9dfab4745c46a03c92b800365a2a1ac39857a8)) - **sqlite:** rebuild the table when the primary key is added or changed ([#&#8203;8356](https://github.com/mikro-orm/mikro-orm/issues/8356)) ([052b83b](https://github.com/mikro-orm/mikro-orm/commit/052b83b0f12bcfa5dc75103e7aa1795645a4d845)) - **sql:** only convert regexps that LIKE can express ([#&#8203;8367](https://github.com/mikro-orm/mikro-orm/issues/8367)) ([8a6d649](https://github.com/mikro-orm/mikro-orm/commit/8a6d64972400fdae0dfad0ac77e6a29f2910ca1c)) - **sql:** only skip auto-generated enum checks when diffing check constraints ([#&#8203;8375](https://github.com/mikro-orm/mikro-orm/issues/8375)) ([ceeb1bc](https://github.com/mikro-orm/mikro-orm/commit/ceeb1bc4189ddc10662cfe89be4b21976dfecb7f)), closes [#&#8203;8374](https://github.com/mikro-orm/mikro-orm/issues/8374) - **sql:** restore a missing primary key in the schema diff ([#&#8203;8355](https://github.com/mikro-orm/mikro-orm/issues/8355)) ([a0e4c75](https://github.com/mikro-orm/mikro-orm/commit/a0e4c75abd06d4a95860de3078f4e0c7988b7111)) ### [`v7.2.2`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#722-2026-09-28) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.1...v7.2.2) ##### Bug Fixes - **core:** allow falsy values in concurrency checks ([#&#8203;8318](https://github.com/mikro-orm/mikro-orm/issues/8318)) ([8f483a6](https://github.com/mikro-orm/mikro-orm/commit/8f483a6136b754abc1beb7990d408409bb40b3de)) - **core:** compare FK column for primary key conditions on polymorphic relations ([#&#8203;8328](https://github.com/mikro-orm/mikro-orm/issues/8328)) ([7ead234](https://github.com/mikro-orm/mikro-orm/commit/7ead23412326065ae037f31f4c569f5cceda16a4)), closes [#&#8203;8326](https://github.com/mikro-orm/mikro-orm/issues/8326) - **core:** do not mutate the where condition and data passed to the EntityManager ([#&#8203;8291](https://github.com/mikro-orm/mikro-orm/issues/8291)) ([6b42e5b](https://github.com/mikro-orm/mikro-orm/commit/6b42e5b39af15f9e3fc12ca4e484640ddbd44028)), closes [#&#8203;8290](https://github.com/mikro-orm/mikro-orm/issues/8290) - **core:** handle primary key values and objects in polymorphic and relation conditions ([#&#8203;8329](https://github.com/mikro-orm/mikro-orm/issues/8329)) ([cc54e42](https://github.com/mikro-orm/mikro-orm/commit/cc54e4286a168e2b9a107133d9fc56c565be8f4e)), closes [#&#8203;8328](https://github.com/mikro-orm/mikro-orm/issues/8328) - **core:** hydrate partial upsert results without mismatching entities ([#&#8203;8294](https://github.com/mikro-orm/mikro-orm/issues/8294)) ([62632c2](https://github.com/mikro-orm/mikro-orm/commit/62632c24977ac68f2fa8754f58fd488e61b91909)) - **core:** keep entity identity for relations using `targetKey` ([#&#8203;8323](https://github.com/mikro-orm/mikro-orm/issues/8323)) ([10c73e3](https://github.com/mikro-orm/mikro-orm/commit/10c73e36a57f664fd199a1ba583778523ace8da3)), closes [#&#8203;8322](https://github.com/mikro-orm/mikro-orm/issues/8322) - **core:** keep the input order in `em.upsertMany()` when a split batch has duplicate rows ([#&#8203;8310](https://github.com/mikro-orm/mikro-orm/issues/8310)) ([3625eab](https://github.com/mikro-orm/mikro-orm/commit/3625eab402ab97774bb5def3f24354acbdc8b92f)) - **core:** make compiled function keys independent of module evaluation order ([#&#8203;8339](https://github.com/mikro-orm/mikro-orm/issues/8339)) ([4e52beb](https://github.com/mikro-orm/mikro-orm/commit/4e52bebbb3b4e0f12598d79db1b473acae5dd9ce)), closes [#&#8203;8335](https://github.com/mikro-orm/mikro-orm/issues/8335) - **core:** map upsertMany results to the corresponding SQL inputs ([#&#8203;8305](https://github.com/mikro-orm/mikro-orm/issues/8305)) ([bb0a814](https://github.com/mikro-orm/mikro-orm/commit/bb0a8140a4c92fc84f9c59fa3b23eed13bad313e)) - **core:** merge columns supplied only by some rows in `em.upsertMany()` ([#&#8203;8298](https://github.com/mikro-orm/mikro-orm/issues/8298)) ([156e5ba](https://github.com/mikro-orm/mikro-orm/commit/156e5bacad9ad70e678a52b8cc652fdc606a656b)) - **core:** preserve concurrency values in batch lock checks ([#&#8203;8317](https://github.com/mikro-orm/mikro-orm/issues/8317)) ([4cd89c6](https://github.com/mikro-orm/mikro-orm/commit/4cd89c69e5729b93a2f4838eb984dedbf069c7b6)) - **core:** preserve entity schema when restoring cached results ([#&#8203;8303](https://github.com/mikro-orm/mikro-orm/issues/8303)) ([4be2efc](https://github.com/mikro-orm/mikro-orm/commit/4be2efcdca4c888c2d81b35392f60109175ef9b4)) - **core:** preserve existing groups when lifting relation filters ([#&#8203;8304](https://github.com/mikro-orm/mikro-orm/issues/8304)) ([22dc99a](https://github.com/mikro-orm/mikro-orm/commit/22dc99a193c4abaf024a7a2b29d18cac21be9d06)) - **core:** resolve repositories in non-transactional callbacks ([#&#8203;8316](https://github.com/mikro-orm/mikro-orm/issues/8316)) ([287978f](https://github.com/mikro-orm/mikro-orm/commit/287978faeeb2041890f44f62ee65c67429395b9a)) - **core:** respect custom `fieldNames` in polymorphic relations ([#&#8203;8324](https://github.com/mikro-orm/mikro-orm/issues/8324)) ([dee0655](https://github.com/mikro-orm/mikro-orm/commit/dee0655512fdaab3bcadc85032380963a6d62aec)) - **core:** respect locally disabled transactions during flush ([#&#8203;8306](https://github.com/mikro-orm/mikro-orm/issues/8306)) ([8185e4f](https://github.com/mikro-orm/mikro-orm/commit/8185e4f0a4185139a747ac5a6b32d829bd1694b6)) - **mongodb:** throw on unsupported polymorphic relation conditions ([#&#8203;8326](https://github.com/mikro-orm/mikro-orm/issues/8326)) ([3192a2a](https://github.com/mikro-orm/mikro-orm/commit/3192a2ab80ece7bdcc57206c801a6034d098ad08)) - **mssql:** handle OUTPUT results on tables with triggers ([#&#8203;8295](https://github.com/mikro-orm/mikro-orm/issues/8295)) ([22a1b66](https://github.com/mikro-orm/mikro-orm/commit/22a1b661d64c03a22e53b46c69867cb18d35b589)) - **mssql:** preserve columns from heterogeneous upsert inputs ([#&#8203;8296](https://github.com/mikro-orm/mikro-orm/issues/8296)) ([ed463e5](https://github.com/mikro-orm/mikro-orm/commit/ed463e5751c65fc229062bd044786f0f1251a6d4)) - **mssql:** restrict TPT identity inserts to the owning table ([#&#8203;8297](https://github.com/mikro-orm/mikro-orm/issues/8297)) ([b07d131](https://github.com/mikro-orm/mikro-orm/commit/b07d13197339d1566754487b3fdcfa22b82e285f)) - **sql:** apply target filters when populating polymorphic relations ([#&#8203;8330](https://github.com/mikro-orm/mikro-orm/issues/8330)) ([3338cab](https://github.com/mikro-orm/mikro-orm/commit/3338cab2081b9db7e6fc735144727742a3e9da7d)) - **sql:** do not convert custom types twice in `em.countBy()` ([#&#8203;8342](https://github.com/mikro-orm/mikro-orm/issues/8342)) ([f2f19f9](https://github.com/mikro-orm/mikro-orm/commit/f2f19f9c037ac6fe4bb081a4851eb27b4d4fad8f)), closes [#&#8203;8341](https://github.com/mikro-orm/mikro-orm/issues/8341) - **sql:** do not treat persisted properties as virtual in paginated orderBy ([#&#8203;8309](https://github.com/mikro-orm/mikro-orm/issues/8309)) ([6e765dd](https://github.com/mikro-orm/mikro-orm/commit/6e765ddaf29537ddc2bd19bc961c0a20b8b33525)), closes [#&#8203;8308](https://github.com/mikro-orm/mikro-orm/issues/8308) - **sql:** handle STI subtypes with conflicting property columns and types ([#&#8203;8340](https://github.com/mikro-orm/mikro-orm/issues/8340)) ([cbf93e0](https://github.com/mikro-orm/mikro-orm/commit/cbf93e08b7a71d3a083509030fb23ebd03e74dca)) - **sql:** keep halfvec and sparsevec dimensions during postgres introspection ([#&#8203;8315](https://github.com/mikro-orm/mikro-orm/issues/8315)) ([59d3633](https://github.com/mikro-orm/mikro-orm/commit/59d3633ab9b5a90d33745decaf52a3aa3e694177)), closes [#&#8203;5739](https://github.com/mikro-orm/mikro-orm/issues/5739) - **sql:** keep rows when ordering by polymorphic relation targets ([#&#8203;8334](https://github.com/mikro-orm/mikro-orm/issues/8334)) ([b609860](https://github.com/mikro-orm/mikro-orm/commit/b60986026636b83884b09461c5e10eba7bfff99d)) - **sql:** resolve embedded formulas in partial field selections ([#&#8203;8301](https://github.com/mikro-orm/mikro-orm/issues/8301)) ([3fa975a](https://github.com/mikro-orm/mikro-orm/commit/3fa975acbd0557989f05d293e1327cb976b0749c)) - **sql:** resolve inline embeddable columns that shadow the property name ([#&#8203;8293](https://github.com/mikro-orm/mikro-orm/issues/8293)) ([7042e34](https://github.com/mikro-orm/mikro-orm/commit/7042e34c40761675cf4e2cb67fcb19c76733a0fc)), closes [#&#8203;8292](https://github.com/mikro-orm/mikro-orm/issues/8292) - **sql:** respect `distinct()` and `distinctOn()` in `qb.getCount()` ([#&#8203;8312](https://github.com/mikro-orm/mikro-orm/issues/8312)) ([00da4bd](https://github.com/mikro-orm/mikro-orm/commit/00da4bd0e27a0fcbf2306fa7850f5624815b88a5)), closes [#&#8203;8311](https://github.com/mikro-orm/mikro-orm/issues/8311) - **sql:** respect property returning hints on updates and upserts ([#&#8203;8299](https://github.com/mikro-orm/mikro-orm/issues/8299)) ([4cb1ce3](https://github.com/mikro-orm/mikro-orm/commit/4cb1ce31f60f7a225b5462edf9db9975a8ca356a)) ##### Performance Improvements - **sql:** cache kysely result maps and table name lookups ([#&#8203;8337](https://github.com/mikro-orm/mikro-orm/issues/8337)) ([814aa8f](https://github.com/mikro-orm/mikro-orm/commit/814aa8f3adff3fc01a09c31b0de5d50b43895f8e)), closes [#&#8203;8336](https://github.com/mikro-orm/mikro-orm/issues/8336) ### [`v7.2.1`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#721-2026-09-19) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v7.2.0...v7.2.1) ##### Bug Fixes - **core:** escape the remaining property names in generated code ([#&#8203;8289](https://github.com/mikro-orm/mikro-orm/issues/8289)) ([e15eb04](https://github.com/mikro-orm/mikro-orm/commit/e15eb04b9ad7b41403e480662e99eb62df70054d)), closes [#&#8203;8221](https://github.com/mikro-orm/mikro-orm/issues/8221) - **core:** keep populated relations clean after a result cache hit ([#&#8203;8269](https://github.com/mikro-orm/mikro-orm/issues/8269)) ([86fd18f](https://github.com/mikro-orm/mikro-orm/commit/86fd18f59be05b2896b38b5f2fe5659b3e1f711b)), closes [#&#8203;8268](https://github.com/mikro-orm/mikro-orm/issues/8268) - **mssql:** map legacy `ntext` and `image` column types ([#&#8203;8288](https://github.com/mikro-orm/mikro-orm/issues/8288)) ([e46eddf](https://github.com/mikro-orm/mikro-orm/commit/e46eddf66a03e09b8736aa8ec27298de6ae2370a)), closes [#&#8203;8287](https://github.com/mikro-orm/mikro-orm/issues/8287) - **sql:** do not emit returning clause inside the update sub-query ([#&#8203;8283](https://github.com/mikro-orm/mikro-orm/issues/8283)) ([60b556a](https://github.com/mikro-orm/mikro-orm/commit/60b556a12a394e1cbfcc113e902ba419cca648d9)), closes [#&#8203;8282](https://github.com/mikro-orm/mikro-orm/issues/8282) - **sql:** preserve filtered many-to-many references ([#&#8203;8273](https://github.com/mikro-orm/mikro-orm/issues/8273)) ([c7a9f49](https://github.com/mikro-orm/mikro-orm/commit/c7a9f49573952606cbec7e99b08aa101dd01e5b9)) - **sql:** respect property returning hints on inserts ([#&#8203;8277](https://github.com/mikro-orm/mikro-orm/issues/8277)) ([231ac16](https://github.com/mikro-orm/mikro-orm/commit/231ac16cf3e5ac86ea1bc344a1ea473ac81481ae)) - **sql:** select inline embeddable columns once when populating via joins ([#&#8203;8272](https://github.com/mikro-orm/mikro-orm/issues/8272)) ([0ec88a2](https://github.com/mikro-orm/mikro-orm/commit/0ec88a2c9276453151958fe2ce6444d913ebe635)), closes [#&#8203;8271](https://github.com/mikro-orm/mikro-orm/issues/8271) ##### Features - **sql:** support read-replica routing in em.execute ([#&#8203;8262](https://github.com/mikro-orm/mikro-orm/issues/8262)) ([b164e20](https://github.com/mikro-orm/mikro-orm/commit/b164e20c682de6eb341f391668041a6425383eb1)) ### [`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
renovate-bot force-pushed renovate/mikro-orm-monorepo from c2eeb58e08 to 4d51e93df8 2026-09-20 06:02:11 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.0 to Update mikro-orm monorepo to v7.2.1 2026-09-20 06:02:20 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 4d51e93df8 to 58d0f2d677 2026-09-29 06:02:21 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.1 to Update mikro-orm monorepo to v7.2.2 2026-09-29 06:02:28 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 58d0f2d677 to b3a4afb6c2 2026-10-01 06:03:08 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.2 to Update mikro-orm monorepo to v7.2.3 2026-10-01 06:03:16 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from b3a4afb6c2 to d79cd9260d 2026-10-07 06:01:45 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.3 to Update mikro-orm monorepo to v7.2.4 2026-10-07 06:01:53 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from d79cd9260d to a6b5fe81c6 2026-10-10 06:02:44 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.4 to Update mikro-orm monorepo to v7.2.5 2026-10-10 06:02:53 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from a6b5fe81c6 to 223a0e0340 2026-11-01 05:02:30 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.5 to Update mikro-orm monorepo to v7.2.6 2026-11-01 05:02:43 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 223a0e0340 to 19269e3d1d 2026-11-05 05:02:09 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.6 to Update mikro-orm monorepo to v7.2.7 2026-11-05 05:02:17 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 19269e3d1d to 153ef31a71 2026-11-07 05:02:10 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.7 to Update mikro-orm monorepo to v7.2.8 2026-11-07 05:02:19 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 153ef31a71 to 7e05b64fa4 2026-11-13 05:02:01 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v7.2.8 to Update mikro-orm monorepo to v7.2.9 2026-11-13 05:02:11 +00: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.