MikroORM v5.1.0 Release Notes

Release Date: 2022-03-13 // about 2 years ago
  • ๐Ÿ› Bug Fixes

    • core: do not alias JSON conditions on update/delete queries (5c0674e), closes #2839
    • core: ensure all entities from inner context are merged to the upper one (7b3a6b4), closes #2882
    • core: fix object key utilities for null prototype objects (#2847) (b2cf01e), closes #2846
    • core: fix ordering by complex composite PKs (dde11d3), closes #2886
    • core: fix strict type for orderBy when entity has length property (ef45871), closes #2829
    • core: type global entityRepository option weakly (3faf8bc)
    • knex: order by with a formula field should not include as (#2848) (09e8bfa)
    • knex: fully qualify sub-query order-by fields (#2835) (f74dc73)
    • mysql: mark FK columns as unsigned for mixed composite PKs (67806cb), closes #2844
    • postgres: respect schema name in migration storage (fbf9bfa), closes #2828

    ๐Ÿ”‹ Features

    • core: allow better control over connection type when using read-replicas (#2896) (e40ae2d)
    • core: allow specifying custom pivot table entity (#2901) (8237d16)
    • core: allow using hooks for interface entities (#2895) (aee99b1)
    • core: enable QueryFlag.PAGINATE automatically for em.find() (ccb4223), closes #2867
    • core: map check constraint failures to specific error type (ebcbdff), closes #2836