yarn @mikro-orm/core 7.2.2
v7.2.2

latest releases: 7.2.3-dev.2, 7.2.3-dev.1, 7.2.3-dev.0...
4 hours ago

7.2.2 (2026-09-28)

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

  • sql: cache kysely result maps and table name lookups (#8337) (814aa8f), closes #8336

Don't miss a new core release

NewReleases is sending notifications on new releases.