Skip to content

Releases: mikro-orm/mikro-orm

v7.0.11

16 Apr 07:55

Choose a tag to compare

7.0.11 (2026-04-16)

Bug Fixes

  • core: allow unknown values for Opt<unknown> properties (#7555) (7368fa1)
  • core: hydrate version property when merging data via SELECT_IN populate (#7547) (23ed086), closes #7543
  • core: prevent infinite loop with populate: ['*'] and refresh: true (#7548) (2f0518f), closes #7544
  • core: support TPT inheritance targets in polymorphic relations (#7564) (0e818fa), closes #7563
  • core: unwrap IType serialized type for scalar-based properties in EntityDTO (#7549) (42e4675)
  • core: validate TPT leaf entity indexes against own properties (#7573) (1f5e518), closes #7570
  • decorators: allow ES decorators on abstract classes (#7556) (a4eb8f2), closes #7553
  • migrations: skip database connection in create() and getPending() when snapshot exists (#7568) (4bf6ed5), closes #7493
  • postgres: normalize != to <> in check constraint diffing (#7541) (b8ad2b0), closes #7540
  • schema: convert default values of custom-typed properties to DB form (#7567) (0c1d2c9), closes #7565
  • schema: detect native enum value changes on array columns (#7561) (ec20701), closes #7560

Features

  • core: add logging option to em.upsert(), nativeUpdate() etc (#7562) (8808779), closes #7557

v7.0.10

10 Apr 15:43

Choose a tag to compare

7.0.10 (2026-04-10)

Bug Fixes

  • core: avoid forwarding cwd: undefined to tinyglobby (#7510) (6a134f4), closes #7509
  • core: brand raw query fragments via prototype property (#7519) (f596bdd), closes #7518
  • core: emit enum check constraints for embedded enum properties (#7526) (6f52ad1)
  • core: guard user-defined prototype getters against deep-clone walkers (#7508) (83254db), closes #7151
  • core: populate TPT child-specific relations when entity is already in identity map (#7536) (8fa3ac2), closes #7529
  • core: skip composite PK inlining when operator value is an array (#7524) (b0ccf51)
  • core: skip inverse collections when deduplicating ownColumns (#7504) (40b2760), closes #7490
  • core: skip namespace-merged functions in extractEnumValues (a08e685), closes #7500
  • core: skip overwriting loaded entities with uninitialized references during transaction merge (#7531) (25214f2), closes #7528
  • core: use change set meta in commit order to fix cross-ORM flush (#7513) (02303e8), closes #7511
  • core: use globally registered entity marker symbol (#7518) (294ed5f), closes #7515
  • core: use globally registered symbols for Reference/Collection markers (#7535) (47e5d9f), closes #7515 #7515 #7534
  • sql: allow joining relations on entity-typed CTE in from() (#7523) (514fb4e), closes mikro-orm/mikro-orm#7485
  • sql: skip redundant mapResult in QB when row is already mapped (#7533) (1e654a9), closes #7527

v6.6.13

10 Apr 15:49

Choose a tag to compare

6.6.13 (2026-04-10)

Bug Fixes

  • core: guard prototype-installed methods and accessors against this === prototype (#7512) (62928f1), closes #7508 #7151 #7151
  • core: resolve EntityIdentifier in composite FK with shared join columns (#7478) (dcf89d7), closes #7477
  • core: skip composite PK inlining when operator value is an array (#7525) (030d82b), closes #7524
  • core: skip inverse collections when deduplicating ownColumns (#7505) (132a8d2), closes #7504 #7492
  • core: skip overwriting loaded entities with uninitialized references during transaction merge (#7532) (7ab9769), closes #7531 #7528
  • core: skip shared join columns with null value in mapDataToFieldNames (#7492) (eaa2712), closes #7490

v7.0.9

06 Apr 11:54

Choose a tag to compare

7.0.9 (2026-04-06)

Bug Fixes

  • core: escape special characters in base Platform array marshalling (#7489) (9bc798f), closes #7488
  • core: include generated columns in mergeData diff for identity map reuse (#7491) (97fd5c6), closes #7421 #7486
  • core: resolve EntityIdentifier in composite FK with shared join columns (#7477) (cb44ba0)
  • core: respect compiledFunctions in driver's EntityComparator (#7494) (d2c5cce)
  • core: skip shared join columns with null value in mapDataToFieldNames (#7490) (f6b4273)
  • core: use symbol brand in CollectionShape to prevent false structural matches (#7473) (c9e93e4), closes #7470
  • migrations: skip database connection in checkSchema() when snapshot exists (#7493) (2bcde16)
  • sql: fix null composite FK producing undefined column values in nativeInsertMany (#7476) (7043886), closes #7475
  • sql: fix populate of 1:1 on TPT leaf entity with joined strategy (#7474) (053881c), closes #7469
  • sql: skip relation props without fieldNames in TPT column mapping (#7472) (b63d6ba), closes #7471
  • sql: use composite unique constraint for OneToOne on STI entities (#7480) (cef70b9), closes #7479

v7.0.8

01 Apr 13:01

Choose a tag to compare

7.0.8 (2026-04-01)

Bug Fixes

  • core: exclude namespace functions from enum type inference in defineEntity (#7449) (3ed8060), closes #7446
  • core: fix wrong column name for nested inline embeddables when parent is null (#7464) (b784da9), closes #7463
  • core: make recomputeSingleChangeSet TPT-aware (#7460) (618695d), closes #7455
  • core: populate child-specific relations for TPT entities with populate: ['*'] (#7459) (8962ef9), closes #7453
  • core: resolve circular type inference in defineEntity with composite primaryKeys (#7447) (b5e6442), closes #7445
  • core: skip FK nullification on orphan removal when FK is part of PK (#7462) (134eca7), closes #7461
  • core: use full entity snapshot for TPT entities in commitCreateChangeSets (#7458) (0a0a1c0), closes #7454
  • sql: use pivot entity schema for wildcard check in M:N joins (#7466) (cd0d47d)

v6.6.12

01 Apr 12:57

Choose a tag to compare

6.6.12 (2026-04-01)

Bug Fixes

  • core: recursively nullify nested inline embeddable columns when parent is null (#7465) (a711523), closes #6966 #7463
  • core: skip FK nullification on orphan removal when FK is part of PK (#7461) (7cc10c0), closes #7439 #7436
  • knex: use pivot entity schema for wildcard check in M:N joins (#7467) (795d62b), closes #7466
  • migrations: save transaction ref before prefix() deletes it from options (#7443) (586f5b9), closes #7424

v7.0.7

31 Mar 08:42

Choose a tag to compare

7.0.7 (2026-03-31)

Bug Fixes

  • core: apply embedded sub-property defaults during upsert (#7411) (baf89e1)
  • core: fire orphan removal for OneToOne replacement when inverse already set (#7436) (6e4fe2a)
  • core: preserve user changes on references during initialization (#7421) (69ed5be)
  • core: prevent incorrect nullification of 1:1 inverse relations during joined loading (#7434) (725e924)
  • core: resolve circular type inference in defineEntity with repository + filters (#7441) (0ad9c60), closes #7440
  • core: resolve entity name from registry in MetadataProvider (#7408) (6953f34)
  • core: skip required validation for embeddables with only formula properties (#7429) (88eb092)
  • core: use className instead of tableName for pivot join column names (#7430) (5767c20)
  • mssql: use equality conditions for composite PK batch updates (#7442) (ba4063b)
  • sql: fix count queries with composite PKs and toMany joins (#7415) (bb0d66c), closes #7414
  • sql: fix nativeEnumName schema handling with config-level schema (#7435) (2ddd288), closes #7432
  • sql: generate indexes for materialized view entities (#7419) (bf86941), closes #7417
  • sql: infer Kysely table names for classes extending defineEntity().class (#7425) (469a667), closes #7423
  • sql: pass transaction context through schema introspection to avoid deadlock (#7426) (2a1bc05), closes #7424
  • sql: resolve alias placeholder in raw fragments used as operator values (#7427) (d23d30b), closes #7422

v6.6.11

31 Mar 06:42

Choose a tag to compare

6.6.11 (2026-03-31)

Bug Fixes

  • core: fire orphan removal for OneToOne replacement when inverse already set (#7439) (674efd0), closes #7436
  • core: prevent incorrect nullification of 1:1 inverse relations during joined loading (#7434) (1d46f0f)
  • knex: allow contextual type inference for raw() with string inputs (1683a54)
  • sql: pass transaction context through schema introspection to avoid deadlock (#7431) (03bd640), closes #7426 #7424

v7.0.6

26 Mar 16:32

Choose a tag to compare

7.0.6 (2026-03-26)

Bug Fixes

  • core: allow readonly enum builder items in defineEntity() (#7406) (ebf87e6), closes #7352
  • core: apply onCreate hooks in em.upsert and em.upsertMany (#7400) (5bc0e92), closes #7399
  • core: preserve explicit entity name in defineEntity + setClass during discovery (fca6e6b), closes #7391
  • core: prevent prototype pollution in Utils.merge (954bdba)
  • core: tighten query construction validation (f7e59a5)
  • decorators: handle esbuild ES decorator stack frames in path lookup (e6ea9fc)
  • reflection: resolve inherited property types with ES decorators in TsMorphMetadataProvider (8296a0e), closes #7389
  • schema: escape single quotes in enum CHECK constraints (#7396) (3656519), closes #7395

v6.6.10

26 Mar 15:57

Choose a tag to compare

6.6.10 (2026-03-26)

Bug Fixes

  • core: handle JSON column type conversion in em.refresh() for detached entities (e41b500), closes #7383
  • core: prevent prototype pollution in Utils.merge (06ed5f6)
  • core: tighten query construction validation (ad3643e)
  • schema: escape single quotes in enum CHECK constraints (#7397) (db19731), closes #7396 #7395