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
andBaseEntity.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 topreferTs
(#6214) (194f511) - core: revert workaround for
Date
properties 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
raw
fragments 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
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()
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