Releases: mikro-orm/mikro-orm
Releases · mikro-orm/mikro-orm
v6.4.9
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
expressioncallback (a13a8a0), closes #6481 - core: skip
convertToDatabaseValueSQLfor 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
6.4.8 (2025-03-06)
Bug Fixes
- core: do not cache internal
Collectionreference toEntityManager(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
orderBywhen 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
$notquery (5931d28), closes #6452 - query-builder: revert recent changes to composite key sharing (2bd973d), closes #6359
Features
v6.4.7
6.4.7 (2025-02-22)
Bug Fixes
- core: enforce selection of discriminator column when partial loading is used (80c1b5b), closes #6436
- core: ensure
@Checkexpression 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.assignwith 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
entityNameas argument for filtercondcallback (#6424) (f358dbf) - core: improve typings for
@Entity,@Indexand@Uniquedecorators (#6416) (833a640)
Performance Improvements
v6.4.6
v6.4.5
6.4.5 (2025-01-30)
Bug Fixes
- core: allow querying by embedded instance with
em.findAndCount(#6370) (9e60817), closes #6353 - core: ensure populating
Refproperties do not result inTypeError(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
v6.4.4
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
v6.4.3
6.4.3 (2025-01-08)
Bug Fixes
- entity-generator: output explicit
referencedColumnNameswhen 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
columnTypeswhen sharing a column in a composite foreign key (6781194), closes #6323 - schema: output deferrable FKs in sqlite
create tablestatement (6bbec01) - schema: support
unsignedfordecimalanddoubletypes (d3ce313), closes #6318
Features
v6.4.2
6.4.2 (2024-12-22)
Bug Fixes
- core: correctly handle populate of
mapToPkrelations (#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
v6.4.1
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
6.4.0 (2024-11-11)
https://mikro-orm.io/blog/mikro-orm-6-4-released
Bug Fixes
- core: add missing
getterNameoption (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().serializeandBaseEntity.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
tsNodeoption topreferTs(#6214) (194f511) - core: revert workaround for
Dateproperties inclone()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
rawfragments inqb.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
onQueryhook (#6200) (6f98b3c) - core: add
prefixModeoption 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()andqb.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