@mikro-orm/mysql
7.2.11 · 20 Nov 2026MIT388.9k / weekRepositoryHomepagenpmAtom feed
7.2.11 is the newest release of 7.x.
In short
1 new2 faster18 fixed
Release note
Bug Fixes
core: don't convert a sub-query value with the property's custom type (#8574) (6843a82), closes #8572
core: don't treat record types as
LazyRefcore: keep class instances by reference when merging the config (#8496) (d11862d), closes #8495
core: respect the entity default
orderByinem.findByCursor()(#8503) (8d789d8), closes #7133core: use distinct pivot columns for M:N within one STI hierarchy
postgres: compare interval literals in generated expressions by value (#8585) (e19482b), closes #8482 #8481
postgres: keep element type modifiers when introspecting array columns (#8498) (08a55c7), closes #8497
postgres: map restrict violation errors to
ForeignKeyConstraintViolationExceptionschema: reject combining
deferModewithwhereon unique indexes (#8514) (1bc4d12), closes #8512sql: convert driver exceptions on the QueryBuilder read path (#8584) (fa08c33), closes #8577
sql: emit valid SQL for
$in/$ninon array columns (#8502) (2ab63ff), closes #8454sql: handle
$notnested under collection properties (#8471) (fee6fc5), closes #8468sqlite: fail fast when an entity declares a schema that is not attached
sqlite: keep child rows when a migration rebuilds a table (#8510) (0a3aa8a), closes #6300 #6358
sqlite: read the definition of the first column when introspecting a table
sql: keep aliased FK columns when they match a joined relation name (#8573) (0175b57), closes #8571
sql: resolve inherited columns in TPT child formulas to the parent alias (#8506) (e02bb16), closes #8492
sql: return one primary key per row from em.insertMany (#8582) (0d3333a), closes #8575
Features
core: embed a query builder passed as a raw fragment param as a sub-query (#8590) (64763fd), closes #8570
Performance Improvements
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.