Skip to content

Releases: mikro-orm/mikro-orm

v6.4.9

07 Mar 09:03

Choose a tag to compare

6.4.9 (2025-03-07)

Bug Fixes

  • core: ensure correct alias is used in complex join conditions (328c809), closes #6484
  • core: fix type of virtual entity expression callback (a13a8a0), closes #6481
  • core: skip convertToDatabaseValueSQL for missing values (63b028b), closes #6470
  • core: skip TS support detection via require.extensions (#6488) (3efdcd0)
  • schema: support indexes on inlined embeddables (6689c02), closes #6469

v6.4.8

06 Mar 09:02

Choose a tag to compare

6.4.8 (2025-03-06)

Bug Fixes

  • core: do not cache internal Collection reference to EntityManager (1c07cab), closes #6453
  • core: ensure bigint types don't produce extra updates with joined strategy (70063e0), closes #6478
  • core: fix serialization of collections with composite entities via getIdentifiers (4effa18), closes #6479
  • core: respect check constraints from child STI entities (8cfd6e3), closes #6450
  • core: respect Collection property orderBy when dataloader is enabled (#6467) (6322ce8)
  • query-builder: apply filters to auto-joined relations (#6480) (6b1d7ee), closes #6458
  • query-builder: do not inline PK nested in a $not query (5931d28), closes #6452
  • query-builder: revert recent changes to composite key sharing (2bd973d), closes #6359

Features

  • entity-generator: pass through orderBy option to the output (#6466) (1142f40)

v6.4.7

22 Feb 17:34

Choose a tag to compare

6.4.7 (2025-02-22)

Bug Fixes

  • core: enforce selection of discriminator column when partial loading is used (80c1b5b), closes #6436
  • core: ensure @Check expression callback works without explicit type (5aa77db), closes #6429
  • core: ensure partial loading allows to fetch missing values (ecba90f), closes #6395
  • core: fix extra updates with joined strategy caused by custom types (2e1ab9a), closes #6432
  • core: fix querying by a composite property with shared columns (#6445) (396ee70), closes #6359
  • core: fix support for custom types on PKs in em.upsert (57a4549), closes #6434
  • core: fix type error when getting a composite PK value (2d4d2be), closes #6430
  • core: fix type resolution in em.assign with nullable properties (4f13552), closes #6426
  • mssql: fix support for upsert on compound unique constraints (#6447) (43d1ff5), closes #6390
  • schema: respect schema from config in clearDatabase() (0ab99a1), closes #6405
  • sql: quote raw().as() field aliases (d9716d7)
  • sql: respect EM schema when clearing not populated 1:m collection of wildcard entities (12223e3), closes #6387

Features

  • core: add entityName as argument for filter cond callback (#6424) (f358dbf)
  • core: improve typings for @Entity, @Index and @Unique decorators (#6416) (833a640)

Performance Improvements

  • reflection: only consider entity files instead of evaluating the whole project (#6439) (6f22fa6)

v6.4.6

12 Feb 09:20

Choose a tag to compare

6.4.6 (2025-02-12)

Bug Fixes

  • query-builder: fix default schema resolution when root entity has a custom schema (#6380) (746f43f), closes #6373
  • sqlite: ensure correct order of columns in temp table (#6391) (fc51bd5), closes #6145

Features

  • seeder: make .each() function receive index: number argument (#6393) (8613388)
  • seeder: pass params to .definition() function as argument (#6396) (b45db20)

v6.4.5

30 Jan 08:35

Choose a tag to compare

6.4.5 (2025-01-30)

Bug Fixes

  • core: allow querying by embedded instance with em.findAndCount (#6370) (9e60817), closes #6353
  • core: ensure populating Ref properties do not result in TypeError (7d34645)
  • core: fix creating new entities with composite props that share a column (68c79b2), closes #6360
  • core: fix processing of queries for composite props that share a column (c01522d), closes #6359

Features

  • migrations: allow returning promise from generateMigrationFile (af75d06), closes #6364

v6.4.4

23 Jan 20:27

Choose a tag to compare

6.4.4 (2025-01-23)

Bug Fixes

  • core: do not persist embeddables via em.create() (c6ed010)
  • core: fix multi insert when some values of a not-null column with default are missing (cd8f6e1)
  • core: ignore partial loading hint on JSON column when pruning relations (fbdea0a)
  • core: reduce chance of collisions of internal embedded properties (#6354) (98ab6a2), closes #6351
  • query-builder: process custom types in join conditions (3a6153f), closes #6357
  • schema: fixed handling of check constraints on MariaDB before 10.5.10 (#6352) (7d41e22), closes #6350

Features

  • core: add ignoreUndefined flag to assign helper (#6339) (bdcce17), closes #6338
  • core: allow raw query fragments in assign() helper data (c47ac64), closes #6346
  • core: support disableIdentityMap in em.upsert/Many() (e8e9d4c), closes #6345
  • seeder: make Factory.em protected (#6340) (e66d843)

v6.4.3

08 Jan 15:46

Choose a tag to compare

6.4.3 (2025-01-08)

Bug Fixes

  • entity-generator: output explicit referencedColumnNames when sharing a column in a composite foreign key (85db3c1), closes #6323
  • entity-generator: skip bidirectional relation if target metadata doesn't exist (#6328) (c7984fe)
  • query-builder: ignore lock mode in paginate subquery and keep it only on top level (3b7fdba)
  • schema: infer columnTypes when sharing a column in a composite foreign key (6781194), closes #6323
  • schema: output deferrable FKs in sqlite create table statement (6bbec01)
  • schema: support unsigned for decimal and double types (d3ce313), closes #6318

Features

  • migrations: allow configuring snapshot via env vars (59f0593), closes #6327
  • mongo: include MikroORM version in MongoDB handshake (#6326) (f501a91)

v6.4.2

22 Dec 12:47

Choose a tag to compare

6.4.2 (2024-12-22)

Bug Fixes

  • core: correctly handle populate of mapToPk relations (#6309) (61fb8f5), closes #6265
  • core: fix cursor pagination with POJO cursor and relations (de1ae67), closes #6308
  • core: prevent reinsertion of an entity referenced by a formula when it is removed from a collection (#6265) (8f45243)
  • entity-generator: support multi-line comments (#6290) (4fdb169), closes #6286
  • query-builder: combine serialization hint from managed entities and QueryBuilder result (#6307) (7d1a0dc)
  • query-builder: improve detection of to-many joins in qb.getCount() (4e5b18b), closes #6291
  • reflection: fix source file detection after update to ts-morph v24 (d9716a6), closes #6297

Features

  • core: validate missing properties in cursor (d175c9d), closes #6308

v6.4.1

08 Dec 18:34

Choose a tag to compare

6.4.1 (2024-12-08)

Bug Fixes

  • core: consider nested queries on JSON properties as scalars (920b019), closes #6246
  • core: fix upserting properties with custom types (036b84d), closes #6241
  • core: improve handling of reference wrapper inside constructor parameters (db7cb8a), closes #6266
  • core: skip extra updates on properties with deferred constraints (85a649b), closes #6266
  • core: support upserting entities with FK as PK when the target entity has composite PK (#6275) (2ae9ae7), closes #6252

v6.4.0

11 Nov 06:21

Choose a tag to compare

6.4.0 (2024-11-11)

https://mikro-orm.io/blog/mikro-orm-6-4-released

Bug Fixes

  • core: add missing getterName option (aa18e57), closes #6127
  • core: allow upserting POJO with embeddded instances (159fd4a), closes #6198
  • core: check that inverse side exists when mapping collection items via dataloader (#6149) (f580598), closes #6148
  • core: ensure decimal type that maps to number won't produce extra updates (cc67ca4)
  • core: fix double processing of custom types in em.nativeUpdate (1b39846), closes #6206
  • core: fix explicit serialization typing via wrap().serialize and BaseEntity.serialize (d93b325)
  • core: ignore collection properties when entity constructors are enforced (78a5937)
  • core: improve comparison of decimal values (66e60cb), closes #6194
  • core: improve error handling for comparing invalid dates (#6120) (1aa940b)
  • core: pass correct values to constructor for props using custom types (58c8ce4)
  • core: rename tsNode option to preferTs (#6214) (194f511)
  • core: revert workaround for Date properties in clone() helper (c1af3db), closes #6118
  • core: use db value for identity map key of PKs with custom type (aa1dd3c), closes #6150
  • entity-generator: output inverse sides for pure pivot tables when outputted (#6196) (e4b048b), closes #6192
  • mssql: map property names to field names when processing composite keys (cf687e8), closes #6204
  • postgres: make upsert where conditions fully qualified (b4b3cab), closes #6203
  • postgres: return all results for multi statement raw queries (adcef5f), closes #6009
  • postgres: support raw fragments in qb.distinctOn() (f8580c8)
  • query-builder: fix detection of raw fragments in update queries with not matching field names (22b918f), closes #6177
  • query-builder: fix serialization of nested relations (3850c1e), closes #6194

Features

  • core: add @Transactional() decorator (#6143) (babe4da)
  • core: add onQuery hook (#6200) (6f98b3c)
  • core: add prefixMode option to embeddables (#6113) (5df26e1), closes #6112
  • core: allow defining multiple named configurations in one config file (#6201) (cecea34), closes #6067
  • core: improve support for sharing columns in multiple properties (05318c1)
  • core: schedule orphan removal on old 1:1 relations regardless of their init state (fc9a1c1), closes #5213
  • core: upsert managed entities (#6197) (a3b5e57), closes #6055
  • core: validate non-persistent relations are not composite (#6216) (16c8b48)
  • entity-generator: added support for forceUndefined being false (#5849) (e0ce840)
  • migrations: allow passing list of classes to migrationsList (#6102) (35d84ac), closes #6099
  • migrations: allow subscribing to migrator events (18a425c), closes #5763
  • mssql: add support for smalldatetime type (#6128) (998509b), closes #5904
  • query-builder: add qb.andHaving() and qb.orHaving() methods (c36d4c8), closes #5796
  • query-builder: allow joins on update queries (782e227), closes #6150
  • schema: diff foreign keys also by the constraint name (93ade9d), closes #6146

Performance Improvements

  • schema: filter tables before fetching table details (#6138) (74bf43f), closes #5900