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 filtercond
callback (#6424) (f358dbf) - core: improve typings for
@Entity
,@Index
and@Unique
decorators (#6416) (833a640), closes /github.com/mikro-orm/mikro-orm/blob/a6c48fd1b436edcd2bcead74ebfec42bb65da043/packages/core/src/errors.ts#L214