@mikro-orm/mysql
7.2.11 · 20 Nov 2026MIT388.9k / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 251 releases- 7.x · latest line
7.2.11
20 Nov 2026core: do not replace entity methods with unknown keys in
assign()core: ignore commas inside default values when reading constructor params
Bug Fixes
core: do not replace entity methods with unknown keys in
assign()core: honor the per-call fail handler in
ScalarReference.loadOrFail()(#8767) (3728594), closes #8758core: ignore commas inside default values when reading constructor params
core: include filter params in the result cache key of queries loading relations
core: mark populated collection partial only when the populate filter targets it (#8755) (f882683), closes #8753
core: reuse identity-map entries with falsy primary keys
mssql: quote schema, table and column names in schema helper queries
mysql: read enum items of tables with a quote in their name
oracle: keep dollar signs followed by digits in values intact
seeder: normalize the seeder name to a valid class identifier in
seeder:createsql: handle unusual identifier names in schema introspection
sql: keep question marks in identifiers and inlined values out of placeholder matching
sql: quote every part of dotted identifiers (#8765) (527a554), closes #8760
Performance Improvements
core: compute populate child fields once per relation instead of per entity
core: reassign collection indexes once when removing many items
7.2.10
16 Nov 2026cli: resolve
MIKRO_ORM_TYPE=mongoto the mongo drivercore: accept numeric strings in
limitandoffsetoptions
Bug Fixes
cli: resolve
MIKRO_ORM_TYPE=mongoto the mongo drivercore: accept numeric strings in
limitandoffsetoptionscore: do not mark refreshed m:n items with custom types as dirty (#8742) (aabaa17), closes #8739
core: do not queue auto-flush when loading 1:m collections (#8699) (263b7ed), closes #6982
core: hydrate formulas typed as number to numbers (#8711) (fb1ad05), closes #8694
core: keep the CLI's dynamicImportProvider when re-creating Configuration
core: keep trailing empty strings in string arrays on non-postgres platforms (#8720) (de1ad6f), closes #8719
core: keep unflushed collection changes in
em.populate()(#8692) (149a957), closes #8690core: match upserted rows by all onConflictFields (#8696) (43943c2), closes #8695 #8294
core: snapshot merged
targetKeyand polymorphic to-one relations correctly (#8715) (faf7597), closes #8661mssql: do not mark string properties with a custom column type as dirty after load (#8747) (b5adf83), closes #8740
mssql: map date results of joined relations to strings (#8734) (f93338d), closes #8540 #8733
mssql: validate pooled connections without a query (#8743) (5ca2b66), closes #8741
postgres: quote array elements that postgres would read differently (#8748) (fab35eb), closes #8730
postgres: quote the sequence name in setval and nextval when adding autoincrement
Performance Improvements
core: avoid per-entity sets and repeated property lookups in
toObject()core: cut per-entity allocations when computing change sets
core: mark collections and references on the prototype
core: reset wrapper fields instead of deleting them
core: skip
ensurePropagation()for entities without bidirectional to-one relations (#8702) (137a009), closes #8671core: skip the merge cascade for entities freshly mapped via
em.map()core: speed up flushing removed entities (#8709) (e9012dc), closes #8698
core: trim per-row overhead when reading entities
core: walk only props with
onUpdatehooks when computing update change setssql: precompute joined column aliases and stop deleting them per row
7.2.9
12 Nov 2026cli: resolve TS loaders from the project root
core: clean up the serialization context when
toObject()orserialize()throws
Bug Fixes
cli: resolve TS loaders from the project root
core: accept
FindOptions<T>typed options in genericfind()wrappers (#8662) (932227e), closes #8655core: clean up the serialization context when
toObject()orserialize()throwscore: detect in-place mutations of Date properties on loaded entities (#8675) (2a02c9f), closes #4391
core: do not propagate STI sibling property checks to other subtypes (#8688) (b0b2303), closes #8687
core: don't re-query empty inverse 1:1 relations on repeated populate (#8627) (b074921), closes #8624
core: fill extra columns of a composite FK referencing non-PK target columns (#8646) (14737a2), closes #8641 #8640
core: keep unrefreshed properties in the snapshot on partial refresh (#8633) (254f21f), closes #8632
core: mark entities managed when merged via em.merge()
core: reject unparseable date strings with ValidationError in assign() (#8658) (092e0ba), closes #8656
core: reuse managed entity in
findOnewhenfieldsname an inline embeddable (#8626) (6b79fad), closes #8625core: store the database value of the FK in the snapshot set during hydration (#8661) (a868c92), closes #8657
core: treat copies of a custom type instance as the same type in polymorphic embeddables (#8651) (10a0998), closes #8650
core: write a scalar composite FK value to the column referencing the target PK (#8645) (c9cbb76), closes #8644 #7764 #8640 #8641
mongo: map property names to field names in the partial index
where(#8635) (1dd8144), closes #7593mongo: return the stored version from
em.upsert()andem.upsertMany()(#8623) (3af6998), closes #8620mssql: raise the default request timeout to 60s
mysql: unescape quotes in introspected check constraint expressions (#8639) (9481b56), closes #8485
oracledb: keep fractional seconds on datetime values returned via OUT binds
postgres: don't diff a check over a list of values as an enum (#8653) (64bd76a), closes #8652
schema: do not diff enum items of a non-enum STI discriminator column
sql: bump the version property when
upsert()updates an existing rowsql: compare bigint defaults by value (#8631) (4c740be), closes #8132 #8132 #7796
sql: merge every column of a composite FK on upsert conflict (#8648) (0a2d093), closes #8643 #8642
sql: reject non-string order directions in
orderBysql: run joined
qb.update()andqb.delete()as write queries inexecute()sql: skip generated columns in
em.clone()andqb.insertFrom()
Performance Improvements
core: avoid deopt loop when cloning query builder state
core: keep scalar properties as plain data properties (#8671) (e312571), closes #6982
core: skip re-snapshotting entities freshly mapped via em.map()
core: use Object.keys in getObjectQueryKeys
postgres: escape string literals in linear time (#8659) (2929460), closes #8001
Dependency tracking
Know when your own dependencies move
@mikro-orm/mysql shipped a new major in the last 12 months, among 65 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 23 Nov 2026. Releases and advisories last read 23 Nov 2026.
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.