MikroORM v5.5.2 Release Notes
Release Date: 2022-11-07 // almost 2 years agoPrevious changes from v5.5.1
-
๐ Bug Fixes
- core: compare original entity data when checking for unique props (53ff984), closes #3644
- core: fix
em.upsert()
when entity is already in context (f590b79), closes #3667 - core: fix comparing empty arrays (be4cdf3), closes #3694
- core: fix orphan removal for collections of complex/nested composite keys (925c1d2), closes #3666
- core: fix querying for a complex composite key via inverse side (b99e7bb), closes #3669
- core: handle
$fulltext
search correctly in nested queries (9a2f535), closes #3696 - core: improve detection of entity file path via stack trace (d329d32), closes #3668
- core: improve propagation of changes to 1:1 relations (389b4a2), closes #3614
- embeddables: support partial loading hints (0c33e00), closes #3673
- knex: ensure virtual properties are never part of
returning
clause (35d51fe), closes #3664 - postgres: fix ensuring database exists when
postgres
database does not exist (b1a867d), closes #3671 - reflection: fix reflection of embedded array types (786ba42), closes #3690
- reflection: improve detection of array properties (8f8f820), closes #3690
๐ Features
- core: add
em.repo()
shortcut (feebd7c) - core: add
EntityOptions.repository
shortcut (2cbb129) - core: add
EntityRepository.upsert()
shortcut (31d6d77) - core: add
ref
alias forwrappedReference
relation property option (249a407) - core: add
Rel<T>
andRef<T>
relation types (44acefb) - core: add context param to
Type.convertToDatabaseValue()
(a933e98), closes #3567 - core: allow using second argument of
@OneToOne
as options (115462d) - core: propagate parent entity to collection item payload in
assign
(6045511), closes #3654 - core: propagate parent entity to collection item payload in
create
(bb9f8d9), closes #3654 - core: support composite unique keys in
em.upsert()
(3cf79d6), closes #3656