MikroORM v4.4.0 Release Notes
Release Date: 2021-01-24 // about 3 years ago-
๐ Bug Fixes
- core:
em.create()
should not mutate the input object (b83b211), closes #1294 - core: allow using
lazy
flag with formulas (4b2b5ce), closes #1229 - core: always make new entity snapshot (1dacf1e), closes #1334
- core: apply discriminator condition when loading STI entities (9c62370), closes #1252
- core: clear inverse references to removed entities (3a1d927), closes #1278
- core: fix creating entity graph from deeply nested structures (833d246), closes #1326
- core: fix custom types with joined loading strategy (f64e657), closes #1237
- core: fix nullable embeddables in object mode (bb8dbce), closes #1296
- core: fix pessimistic locking via
em.findOne()
(a0419a4), closes #1291 - core: improve custom sql expression detection (cf8c5cd), closes #1261
- core: make PK property of
Reference
required (5e1cf23) - core: respect context when working with filter params (97ed314), closes #1312
- core: support FK as PK in
Collection.getIdentifiers()
(#1225) (f8024c9), closes #1224 - entity-generator: emit collection name in decorator (#1338) (33574e8), closes #1328
- mongo: fix using custom field name on relations (44becca), closes #1279
- mysql: enforce 64 character limit for identifier names in SQL (#1297) (9c83b6d), closes #1271
- schema: fix index name with explicit schema (b62d9ec), closes #1215
- schema: fix renaming of multiple columns at the same time (677a2b7), closes #1262
- sql: sort fetch-joined properties on their orderBy (#1336) (f18cd88), closes #1331
๐ Features
- core: add support for nested embedddables (#1311) (aee2abd), closes #1017
- core: add support for nested partial loading (#1306) (3878e6b), closes #221
- core: allow disabling identity map and change set tracking (#1307) (03da184), closes #1267
- core: allow using native private properties (fc35c22), closes #1226
- core: implement transaction lifecycle hooks (#1213) (0f81ff1), closes #1175
- core: support handling
Set
as array-like input (#1277) (2945b8c) - mysql: allow specifying collation globally (cd95572), closes #1012
- ๐ query-builder: add support for
onConflict()
(b97ecb5), closes #1240
๐ Performance Improvements
- core: make
IdentityMap
iterable (e13757a)
โช Reverts
- core: