Update mikro-orm monorepo to v6.6.4 #22

Open
renovate-bot wants to merge 1 commit from renovate/mikro-orm-monorepo into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@mikro-orm/cli (source) 6.4.166.6.4 age adoption passing confidence
@mikro-orm/core (source) 6.4.166.6.4 age adoption passing confidence
@mikro-orm/migrations (source) 6.4.166.6.4 age adoption passing confidence
@mikro-orm/postgresql (source) 6.4.166.6.4 age adoption passing confidence
@mikro-orm/reflection (source) 6.4.166.6.4 age adoption passing confidence

Release Notes

mikro-orm/mikro-orm (@​mikro-orm/cli)

v6.6.4

Compare Source

Bug Fixes
  • core: do not convert custom types in em.refresh (143a4ed), closes #​7073
  • core: fix applying filters on nested relation conditions (2ec6474)
  • core: fix processing filters on to-many relations (4a55799)
  • core: respect orphanRemoval on 1:1 relations when inverse side is a PK (#​7081) (ce4bfee)
  • core: support wildcard wrap(e).populate() hints on type level (45224ee)
  • mongo: fix field name conversion when querying object embedded entities (3ea8193)
  • postres: fix casting of object embedded relation properties (6095889)

v6.6.3

Compare Source

Bug Fixes
  • core: do not connect to database when calling orm.close() (79cabd7), closes #​7041
  • core: don't reset entity identifiers when using assign on entity references (#​7048) (ca5d9b8)
  • core: handle custom types properly in em.refresh (#​7061) (7dc5d7d)
  • defineEntity: avoid circular type inference in meta (#​7039) (a18e63d)
  • query-builder: do not reset schema when creating subquery for collection operators (4f4ea6d), closes #​7053
  • schema: ensure SchemaGenerator respects skipTables option when diffing a schema (#​7040) (40fa85a)

v6.6.2

Compare Source

Bug Fixes
Features
Performance Improvements

v6.6.1

Compare Source

Bug Fixes
  • core: try to infer property types regardless of inferDefaultValues option (98eef5e)
  • mongo: fix processing of nested lazy scalar properties (94927c6), closes #​6994
  • mongo: respect property fieldName on index creation (#​6979) (44998c0), closes #​6978
  • mysql: ensure raw values are rehydrated after flush (9a86383), closes #​6968
  • query-builder: do not require transaction when for LockMode.NONE (6c2a4b6), closes #​6969
Performance Improvements
  • core: simplify processing of scalars that use simple ORM provided type classes (15d7e74)

v6.6.0

Compare Source

Bug Fixes
  • core: do not ignore updating the whole inlined embedded property to null (d0913f1), closes #​6966
  • core: ensure base properties in STI entities won't be ignored when overridden in one child (b31ffec), closes #​6957
  • core: ensure original entity data are in correct shape after merging (7a30cca), closes #​6951
  • core: rehydrate nullable to-one properties that were discarded via filters with select-in strategy (3d58538), closes #​6460
  • core: support falsy values in scalar references (#​6942) (a02c2a8)
  • core: support type detection on classes with dots in their names like Temporal.Instant (8cca4a8), closes #​6953
  • postgres: allow executing schema queries via knex in migrations (5196f24), closes #​6949
  • reflection: support string literal properties (#​6960) (148ac75)
Features

6.5.9 (2025-10-23)

Bug Fixes
  • core: add some missing options to defineEntity relation builders (#​6922) (3bedcca)
  • core: ensure correct state of custom typed data after merging to existing results (5907da0), closes #​6926
  • core: fix extra updates caused by em.refresh (3d12a8b), closes #​6940
  • core: support auto-discovery of relation targets with defineEntity (a93f2e0)
  • core: support custom classes in defineEntity relation property builders (8a03eca)
  • core: update extends type in defineEntity and EntitySchema (#​6936) (589d0f3)
  • postgres: do not create non-autoincrement simple PKs twice (89e139e)

6.5.8 (2025-10-13)

Bug Fixes
Features
  • core: improve type-level support for composite keys with defineEntity helper (#​6912) (2d39dd0)

6.5.7 (2025-10-06)

Bug Fixes
  • core: enhance branded type definitions for Opt, Hidden, Config and RequiredNullable (#​6884) (6ce418d)
  • core: ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances (#​6902) (51feb3b), closes #​6885
  • core: mark autoincrement properties with Opt type in defineEntity helper (#​6910) (e2a8ed4)
  • core: prefer id property over uuid property for default PK inference (7a9c834), closes #​6865
  • core: skip entity validation when propagating to upper context in em.transactional (a3941a1), closes #​6895
  • query-builder: expand embeddable fields on select (#​6896) (6b76f60)
  • query-builder: support embedded fields in join conditions (#​6897) (409e0ef), closes #​6883
Features
Performance Improvements
  • optimize merging of entities to upper context after em.transactional (36bdc43), closes #​6905
  • optimize merging of entities to upper context after em.transactional (b29e88c), closes #​6890
  • optimize merging of entities to upper context after em.transactional when it's empty (b7751d5), closes #​6890

6.5.6 (2025-09-25)

Bug Fixes
Features

6.5.5 (2025-09-21)

Bug Fixes
  • core: add missing IncludeCount type argument to repo.findByCursor() (34c9630)
  • core: correctly diff nullable properties between undefined and null (#​6864) (c30d1c9)
  • core: skip mapping undeclared columns that match a different property name (#​6860) (b29527e), closes #​6861
  • schema: improve diffing of generated columns (9a59ba6), closes #​6858

6.5.4 (2025-09-17)

Bug Fixes
  • core: initialize collection properties after flushing an entity reference (83ca9c1), closes #​6855
  • core: support inference of default value from property initializer with ref() (56e441d), closes #​6853
  • query-builder: fix aliasing of 1:1 inverse side when used in a filter nested inside M:N relation (61969f6), closes #​6851

6.5.3 (2025-09-13)

Bug Fixes
  • core: align implementation of filters in em.find and em.count (ead5074), closes #​6823
  • core: export RequiredNullable from @mikro-orm/core (#​6836) (961ee74)
  • core: fix propagation from em.transactional with composite custom type PK (0b82f43), closes #​6825
  • core: include hidden properties when refreshing via em.refresh() (9a7bbc3), closes #​6828
  • query-builder: properly wrap composite keys in join conditions (#​6831) (b720ca5), closes #​6830
  • query-builder: skip branching on to-one joins (#​6826) (65812c4), closes #​6824

6.5.2 (2025-09-02)

Bug Fixes
  • core: process owning sides of M:N relations in em.assign with onlyOwnProperties (#​6822) (099869f), closes #​6813
  • migrations: improve extraction of Migration class (2dacc4b), closes #​6817
  • query-builder: fix aliasing of conditions targeting a nested composite FK (b159342), closes #​6819
  • query-builder: fix join conditions targeting a composite FK (3f88e9b), closes #​6819
  • query-builder: fix processing deeply nested joins (d033729), closes #​6818
  • query-builder: hydrate lazy properties regardless of populate hint (8b45281)

6.5.1 (2025-08-27)

  • core: add indexName argument to index expression callback (b77c90f)

v6.5.9

Compare Source

Bug Fixes
  • core: add some missing options to defineEntity relation builders (#​6922) (3bedcca)
  • core: ensure correct state of custom typed data after merging to existing results (5907da0), closes #​6926
  • core: fix extra updates caused by em.refresh (3d12a8b), closes #​6940
  • core: support auto-discovery of relation targets with defineEntity (a93f2e0)
  • core: support custom classes in defineEntity relation property builders (8a03eca)
  • core: update extends type in defineEntity and EntitySchema (#​6936) (589d0f3)
  • postgres: do not create non-autoincrement simple PKs twice (89e139e)

v6.5.8

Compare Source

Bug Fixes
Features
  • core: improve type-level support for composite keys with defineEntity helper (#​6912) (2d39dd0)

v6.5.7

Compare Source

Bug Fixes
  • core: enhance branded type definitions for Opt, Hidden, Config and RequiredNullable (#​6884) (6ce418d)
  • core: ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances (#​6902) (51feb3b), closes #​6885
  • core: mark autoincrement properties with Opt type in defineEntity helper (#​6910) (e2a8ed4)
  • core: prefer id property over uuid property for default PK inference (7a9c834), closes #​6865
  • core: skip entity validation when propagating to upper context in em.transactional (a3941a1), closes #​6895
  • query-builder: expand embeddable fields on select (#​6896) (6b76f60)
  • query-builder: support embedded fields in join conditions (#​6897) (409e0ef), closes #​6883
Features
Performance Improvements
  • optimize merging of entities to upper context after em.transactional (36bdc43), closes #​6905
  • optimize merging of entities to upper context after em.transactional (b29e88c), closes #​6890
  • optimize merging of entities to upper context after em.transactional when it's empty (b7751d5), closes #​6890

v6.5.6

Compare Source

Bug Fixes
Features

v6.5.5

Compare Source

Bug Fixes
  • core: add missing IncludeCount type argument to repo.findByCursor() (34c9630)
  • core: correctly diff nullable properties between undefined and null (#​6864) (c30d1c9)
  • core: skip mapping undeclared columns that match a different property name (#​6860) (b29527e), closes #​6861
  • schema: improve diffing of generated columns (9a59ba6), closes #​6858

v6.5.4

Compare Source

Bug Fixes
  • core: initialize collection properties after flushing an entity reference (83ca9c1), closes #​6855
  • core: support inference of default value from property initializer with ref() (56e441d), closes #​6853
  • query-builder: fix aliasing of 1:1 inverse side when used in a filter nested inside M:N relation (61969f6), closes #​6851

v6.5.3

Compare Source

Bug Fixes
  • core: align implementation of filters in em.find and em.count (ead5074), closes #​6823
  • core: export RequiredNullable from @mikro-orm/core (#​6836) (961ee74)
  • core: fix propagation from em.transactional with composite custom type PK (0b82f43), closes #​6825
  • core: include hidden properties when refreshing via em.refresh() (9a7bbc3), closes #​6828
  • query-builder: properly wrap composite keys in join conditions (#​6831) (b720ca5), closes #​6830
  • query-builder: skip branching on to-one joins (#​6826) (65812c4), closes #​6824

v6.5.2

Compare Source

Bug Fixes
  • core: process owning sides of M:N relations in em.assign with onlyOwnProperties (#​6822) (099869f), closes #​6813
  • migrations: improve extraction of Migration class (2dacc4b), closes #​6817
  • query-builder: fix aliasing of conditions targeting a nested composite FK (b159342), closes #​6819
  • query-builder: fix join conditions targeting a composite FK (3f88e9b), closes #​6819
  • query-builder: fix processing deeply nested joins (d033729), closes #​6818
  • query-builder: hydrate lazy properties regardless of populate hint (8b45281)

v6.5.1

Compare Source

  • core: add indexName argument to index expression callback (b77c90f)

v6.5.0

Compare Source

Bug Fixes
  • core: allow querying embeddables for null values via collection operators (d7b25a7), closes #​6736
  • core: do not fail version mismatch checks when getting the current version fails (086d767), closes #​6765
  • core: do not propagate changes to collections when partially loaded (7068b35), closes #​6732 #​6734
  • core: ensure em.transactional context propagation won't result in breaking identity map (2b608fc), closes #​6764
  • core: ensure correct runtime value of decimal and float properties (#​6807) (7cd8b1c), closes #​6806 #​6806
  • core: fix extra updates after em.refresh on nested entities with embeddables (640985c), closes #​6705
  • core: fix fetching of autoincrement PK when upserting without a unique value (0dccac7), closes #​6755
  • core: fix hydration with select-in strategy and PKs with custom types (#​6808) (4770462), closes #​6726
  • core: fix querying by a nested FK as PK (c2c5bfd)
  • core: hydrate persisted getters without setters unless explicitly disabled (459329a), closes #​6723
  • core: ignore properties with hydrate: false from change tracking (4a6fb9b), closes #​6723
  • core: improve detection of empty flush (6debac9)
  • core: respect joined filters in em.count (323ffef), closes #​6666
  • core: respect logger context in queries from flush and others (#​6777) (083a1ee), closes #​6776
  • core: support cursor based pagination with ScalarReference properties (84d20b1), closes #​6793
  • core: use default for missing values in multi insert for custom types (eae635f), closes #​6727
  • postgres: quote string array values with '' instead of \' (4bc1c9e)
  • postgres: support primary key with generated identity columns (382d5b3), closes #​6693
  • query-builder: fix qb.leftJoinAndSelect with a subquery on M:N relations (aa52abb)
  • query-builder: fix hydrating 1:1 inverse side via joined strategy (d48359c)
  • query-builder: support group operators inside join conditions (#​6796) (efe5a56), closes #​6795
  • reflection: unwrap runtimeType to support correct hydration of scalar references (ff6a7ae), closes #​5557
  • reflection: unwrap ScalarRef<T> and EntityRef<T> type (6b1a349), closes #​5557
  • schema: properly handle array defaults in mysql (#​6703) (534193c), closes #​6688
  • sql: correctly handle lazy scalar properties with custom types (#​6715) (c8add75)
  • sql: fix computing order by clause when ordering by a not populated relation (b8a7984), closes #​6757
Features
Performance Improvements
  • core: make em.refresh faster for reloading large entity graphs (a44f671)
  • sql: speed up hydration of large to-many collections with joined strategy (#​6801) (5faf30c)

6.4.16 (2025-05-30)

Bug Fixes
  • core: fix extra updates after em.refresh is called on properties with custom types (6a6167e), closes #​6674
  • core: fix implicit serialization when multiple populate hints are present (dbf8f3c), closes #​6658
  • core: support custom types in type option of version properties (bd31fb6)
  • core: unlink old 1:1 relation on the owning side when changing inverse side (2f292cc), closes #​6655
  • core: use explicit dataloader for M:N properties (6372e4c), closes #​6665
Features
  • mssql: allow inserting when triggers are present in mssql tables (#​6662) (efafb9b)
  • query-builder: validate wrong group operator position on scalar properties (0f5ce3d), closes #​6684

6.4.15 (2025-05-09)

Bug Fixes
Features

6.4.14 (2025-05-05)

Bug Fixes
  • core: add support for zero count result cache (#​6600) (3a8fdff)
  • core: copy EntitySchema before processing the metadata (cbf4a7f), closes #​6540
  • core: disallow passing array items to scalar array properties in em.create and em.assign (1455027), closes #​6609
  • core: don't remove generated primary keys from entity snapshot (980e53e), closes #​6593
  • core: enforce correct runtime type when object gets inferred (6e46afa), closes #​6633
  • core: fix orderBy value type (06f1a72)
  • core: respect null as a valid cache result (#​6585) (e3bb8e4), closes #​6584
  • core: respect schema option when loading missing fields on upsert (3bd72ea), closes #​6622
  • mssql: handle mapping for order by expressions with nulls first/last (#​6618) (2cae74b)
  • query-builder: don't alias formula properties in join conditions (34d1df4), closes #​6620
Features

6.4.13 (2025-04-12)

Bug Fixes
  • core: allow passing null and undefined to ref() and respect it in return type (2708c7a)
  • core: fix entity path discovery for bun 1.2.7 (#​6564) (a749a4a)
  • core: fix type of a Record properties when mapping to EntityDTO (e4ef475)
  • core: ignore collection operators in auto-joined filter conditions (c72c8c5), closes #​6567
  • core: make populate parameter of em.populate() readonly (#​6580) (87d8c95), closes #​6579
  • core: respect owner schema when persisting M:N with wildcard entities (a53765f), closes #​6575
  • core: skip extra populate query for nullable 1:1 inverse sides (3a72ce5), closes #​6568
  • mssql: ensure formula properties are not selected twice when partial loading on a joined relation (763db15), closes #​6547
  • postgres: fix schema diffing for default and nullable of check constraint enums (#​6572) (db9b0bf), closes #​6571
  • query-builder: ignore nested relation filters when applying filters to auto-joined relations (b9ac04c), closes #​6566

6.4.12 (2025-04-06)

Bug Fixes
  • core: clean up 1:m collections when changing the m:1 value (a720927)
  • core: don't reset not selected values from existing entities (2ebc7a8), closes #​6558
  • core: fix populating m:n collection with custom types (444c130), closes #​6477
  • core: fix populating nested relations when parent entity is self referenced (285a632), closes #​6531
  • core: propagate composite FK values when inserting new entities (9506cae), closes #​6430
  • mssql: ensure date type is mapped to string instead of Date object (098d71b), closes #​6553
  • postgres: fix schema diffing on m:1 relations targeting a native enum PK (a76805e), closes #​6557
  • postgres: fix schema diffing on m:1 relations targeting a native enum PK (e059375), closes #​6557
Features

6.4.11 (2025-03-21)

Bug Fixes
  • core: fix metadata validation for polymorphic embedded properties (61bd2c3), closes #​6522
  • core: fix wildcard schema resolution on pivot tables (c43afa6), closes #​6516
  • core: respect EM schema when populating nested relations with wildcard schema (765eb69), closes #​6511
  • mongo: do not create migrations collection by default (#​6517) (154dafc)
  • mssql: fix upsert with an explicit merge array (4b57d3a), closes #​6534
  • postgres: cockroachdb may not require unmarshallArray (#​6501) (0661942)
  • sqlite: do not ensure directory exists when dbName is :memory: or URL (b0f97ed), closes #​6533

6.4.10 (2025-03-16)

Bug Fixes
Performance Improvements
  • core: fix consecutive metadata discovery taking too long because of STI (f79b64b), closes #​6509

6.4.9 (2025-03-07)

Bug Fixes

6.4.8 (2025-03-06)

Bug Fixes
  • core: do not cache internal Collection reference to EntityManager (1c07cab), closes #​6453
  • core: ensure bigint types don't produce extra updates with joined strategy (70063e0), closes #​6478
  • core: fix serialization of collections with composite entities via getIdentifiers (4effa18), closes #​6479
  • core: respect check constraints from child STI entities (8cfd6e3), closes #​6450
  • core: respect Collection property orderBy when dataloader is enabled (#​6467) (6322ce8)
  • query-builder: apply filters to auto-joined relations (#​6480) (6b1d7ee), closes #​6458
  • query-builder: do not inline PK nested in a $not query (5931d28), closes #​6452
  • query-builder: revert recent changes to composite key sharing (2bd973d), closes #​6359
Features
  • entity-generator: pass through orderBy option to the output (#​6466) (1142f40)

6.4.7 (2025-02-22)

Bug Fixes
  • core: enforce selection of discriminator column when partial loading is used (80c1b5b), closes #​6436
  • core: ensure @Check expression callback works without explicit type (5aa77db), closes #​6429
  • core: ensure partial loading allows to fetch missing values (ecba90f), closes #​6395
  • core: fix extra updates with joined strategy caused by custom types (2e1ab9a), closes #​6432
  • core: fix querying by a composite property with shared columns (#​6445) (396ee70), closes #​6359
  • core: fix support for custom types on PKs in em.upsert (57a4549), closes #​6434
  • core: fix type error when getting a composite PK value (2d4d2be), closes #​6430
  • core: fix type resolution in em.assign with nullable properties (4f13552), closes #​6426
  • mssql: fix support for upsert on compound unique constraints (#​6447) (43d1ff5), closes #​6390
  • schema: respect schema from config in clearDatabase() (0ab99a1), closes #​6405
  • sql: quote raw().as() field aliases (d9716d7)
  • sql: respect EM schema when clearing not populated 1:m collection of wildcard entities (12223e3), closes #​6387
Features
Performance Improvements
  • reflection: only consider entity files instead of evaluating the whole project (#​6439) (6f22fa6)

6.4.6 (2025-02-12)

Bug Fixes
Features
  • seeder: make .each() function receive index: number argument (#​6393) (8613388)
  • seeder: pass params to .definition() function as argument (#​6396) (b45db20)
  • seeder: pass params to .definition() function as argument (#​6396) (77468ee)

6.4.5 (2025-01-30)

Bug Fixes
  • core: allow querying by embedded instance with em.findAndCount (#​6370) (9e60817), closes #​6353
  • core: ensure populating Ref properties do not result in TypeError (7d34645)
  • core: fix creating new entities with composite props that share a column (68c79b2), closes #​6360
  • core: fix processing of queries for composite props that share a column (c01522d), closes #​6359
Features
  • migrations: allow returning promise from generateMigrationFile (af75d06), closes #​6364

6.4.4 (2025-01-23)

Bug Fixes
  • core: do not persist embeddables via em.create() (c6ed010)
  • core: fix multi insert when some values of a not-null column with default are missing (cd8f6e1)
  • core: ignore partial loading hint on JSON column when pruning relations (fbdea0a)
  • core: reduce chance of collisions of internal embedded properties (#​6354) (98ab6a2), closes #​6351
  • query-builder: process custom types in join conditions (3a6153f), closes #​6357
  • schema: fixed handling of check constraints on MariaDB before 10.5.10 (#​6352) (7d41e22), closes #​6350
Features

6.4.3 (2025-01-08)

Bug Fixes
  • entity-generator: output explicit referencedColumnNames when sharing a column in a composite foreign key (85db3c1), closes #​6323
  • entity-generator: skip bidirectional relation if target metadata doesn't exist (#​6328) (c7984fe)
  • query-builder: ignore lock mode in paginate subquery and keep it only on top level (3b7fdba)
  • schema: infer columnTypes when sharing a column in a composite foreign key (6781194), closes #​6323
  • schema: output deferrable FKs in sqlite create table statement (6bbec01)
  • schema: support unsigned for decimal and double types (d3ce313), closes #​6318
Features
  • migrations: allow configuring snapshot via env vars (59f0593), closes #​6327
  • mongo: include MikroORM version in MongoDB handshake (#​6326) (f501a91)

6.4.2 (2024-12-22)

Bug Fixes
  • core: correctly handle populate of mapToPk relations (#​6309) (61fb8f5), closes #​6265
  • core: fix cursor pagination with POJO cursor and relations (de1ae67), closes #​6308
  • core: prevent reinsertion of an entity referenced by a formula when it is removed from a collection (#​6265) (8f45243)
  • entity-generator: support multi-line comments (#​6290) (4fdb169), closes #​6286
  • query-builder: combine serialization hint from managed entities and QueryBuilder result (#​6307) (7d1a0dc)
  • query-builder: improve detection of to-many joins in qb.getCount() (4e5b18b), closes #​6291
  • reflection: fix source file detection after update to ts-morph v24 (d9716a6), closes #​6297
Features

6.4.1 (2024-12-08)

Bug Fixes
  • core: consider nested queries on JSON properties as scalars (920b019), closes #​6246
  • core: fix upserting properties with custom types (036b84d), closes #​6241
  • core: improve handling of reference wrapper inside constructor parameters (db7cb8a), closes #​6266
  • core: skip extra updates on properties with deferred constraints (85a649b), closes #​6266
  • core: support upserting entities with FK as PK when the target entity has composite PK (#​6275) (2ae9ae7), closes #​6252

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [@mikro-orm/cli](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`6.4.16` → `6.6.4`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcli/6.4.16/6.6.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcli/6.6.4?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcli/6.6.4?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcli/6.4.16/6.6.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcli/6.4.16/6.6.4?slim=true) | | [@mikro-orm/core](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`6.4.16` → `6.6.4`](https://renovatebot.com/diffs/npm/@mikro-orm%2fcore/6.4.16/6.6.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fcore/6.6.4?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fcore/6.6.4?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fcore/6.4.16/6.6.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fcore/6.4.16/6.6.4?slim=true) | | [@mikro-orm/migrations](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`6.4.16` → `6.6.4`](https://renovatebot.com/diffs/npm/@mikro-orm%2fmigrations/6.4.16/6.6.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fmigrations/6.6.4?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fmigrations/6.6.4?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fmigrations/6.4.16/6.6.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fmigrations/6.4.16/6.6.4?slim=true) | | [@mikro-orm/postgresql](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`6.4.16` → `6.6.4`](https://renovatebot.com/diffs/npm/@mikro-orm%2fpostgresql/6.4.16/6.6.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2fpostgresql/6.6.4?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2fpostgresql/6.6.4?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2fpostgresql/6.4.16/6.6.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2fpostgresql/6.4.16/6.6.4?slim=true) | | [@mikro-orm/reflection](https://mikro-orm.io) ([source](https://github.com/mikro-orm/mikro-orm)) | [`6.4.16` → `6.6.4`](https://renovatebot.com/diffs/npm/@mikro-orm%2freflection/6.4.16/6.6.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@mikro-orm%2freflection/6.6.4?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@mikro-orm%2freflection/6.6.4?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@mikro-orm%2freflection/6.4.16/6.6.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@mikro-orm%2freflection/6.4.16/6.6.4?slim=true) | --- ### Release Notes <details> <summary>mikro-orm/mikro-orm (@&#8203;mikro-orm/cli)</summary> ### [`v6.6.4`](https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.4) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.6.3...v6.6.4) ##### Bug Fixes - **core:** do not convert custom types in `em.refresh` ([143a4ed](https://github.com/mikro-orm/mikro-orm/commit/143a4ed46896b764c48914ae77e7ea33959db8e4)), closes [#&#8203;7073](https://github.com/mikro-orm/mikro-orm/issues/7073) - **core:** fix applying filters on nested relation conditions ([2ec6474](https://github.com/mikro-orm/mikro-orm/commit/2ec64742ff3d62c8fa494f9de06f479a9c056dd4)) - **core:** fix processing filters on to-many relations ([4a55799](https://github.com/mikro-orm/mikro-orm/commit/4a55799079ca2ad175ad8aa252e9112cd23d3c8b)) - **core:** respect `orphanRemoval` on 1:1 relations when inverse side is a PK ([#&#8203;7081](https://github.com/mikro-orm/mikro-orm/issues/7081)) ([ce4bfee](https://github.com/mikro-orm/mikro-orm/commit/ce4bfeeea3fd7ba18fb2cd0c5dbebc2bfa56eb11)) - **core:** support wildcard `wrap(e).populate()` hints on type level ([45224ee](https://github.com/mikro-orm/mikro-orm/commit/45224ee294a920c9cfe54ed719df6b4a8023e0ef)) - **mongo:** fix field name conversion when querying object embedded entities ([3ea8193](https://github.com/mikro-orm/mikro-orm/commit/3ea819360d466b3dab98047666d505036b066c24)) - **postres:** fix casting of object embedded relation properties ([6095889](https://github.com/mikro-orm/mikro-orm/commit/6095889cc74bfaf9153cc03786adc2fd3e5da6e1)) ### [`v6.6.3`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#663-2026-01-04) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.6.2...v6.6.3) ##### Bug Fixes - **core:** do not connect to database when calling `orm.close()` ([79cabd7](https://github.com/mikro-orm/mikro-orm/commit/79cabd788a69335ed05178a39218c592d400de38)), closes [#&#8203;7041](https://github.com/mikro-orm/mikro-orm/issues/7041) - **core:** don't reset entity identifiers when using `assign` on entity references ([#&#8203;7048](https://github.com/mikro-orm/mikro-orm/issues/7048)) ([ca5d9b8](https://github.com/mikro-orm/mikro-orm/commit/ca5d9b8df3f26bd5d1dfc62e17274b0cbfc827b7)) - **core:** handle custom types properly in `em.refresh` ([#&#8203;7061](https://github.com/mikro-orm/mikro-orm/issues/7061)) ([7dc5d7d](https://github.com/mikro-orm/mikro-orm/commit/7dc5d7d9bf9d30959f58887fed110f2da2300598)) - **defineEntity:** avoid circular type inference in meta ([#&#8203;7039](https://github.com/mikro-orm/mikro-orm/issues/7039)) ([a18e63d](https://github.com/mikro-orm/mikro-orm/commit/a18e63d633595bdaee91fbb59ad3ad93f2cb5992)) - **query-builder:** do not reset schema when creating subquery for collection operators ([4f4ea6d](https://github.com/mikro-orm/mikro-orm/commit/4f4ea6d447ea8ab613fe3ea29e0aa74e45a64932)), closes [#&#8203;7053](https://github.com/mikro-orm/mikro-orm/issues/7053) - **schema:** ensure `SchemaGenerator` respects `skipTables` option when diffing a schema ([#&#8203;7040](https://github.com/mikro-orm/mikro-orm/issues/7040)) ([40fa85a](https://github.com/mikro-orm/mikro-orm/commit/40fa85ab9f8b9d7d8f2316b74a0c076e0a84a3f9)) ### [`v6.6.2`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#662-2025-12-07) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.6.1...v6.6.2) ##### Bug Fixes - **core:** deprecate some EM and MikroORM methods ([551b1df](https://github.com/mikro-orm/mikro-orm/commit/551b1df61f816af45c5adc0841dea0c481f4765d)) - **core:** fix joining embedded entity with virtual property ([2a76b1d](https://github.com/mikro-orm/mikro-orm/commit/2a76b1da7cb641659c340fd4c121ec90da94d925)), closes [#&#8203;7023](https://github.com/mikro-orm/mikro-orm/issues/7023) - **core:** handle `BigInt` in `Date` hydration ([#&#8203;7003](https://github.com/mikro-orm/mikro-orm/issues/7003)) ([236b429](https://github.com/mikro-orm/mikro-orm/commit/236b429d07869871d5436d6c841ad45d985b3538)), closes [#&#8203;7002](https://github.com/mikro-orm/mikro-orm/issues/7002) ##### Features - **core:** use upsert when adding items to not initialized M:N collections ([#&#8203;7019](https://github.com/mikro-orm/mikro-orm/issues/7019)) ([268f378](https://github.com/mikro-orm/mikro-orm/commit/268f3789110b83c8b59e321f55e55fa937ade925)), closes [#&#8203;6625](https://github.com/mikro-orm/mikro-orm/issues/6625) ##### Performance Improvements - **core:** store subscribers in `Set` to deduplicate them by identity ([#&#8203;7010](https://github.com/mikro-orm/mikro-orm/issues/7010)) ([a41c498](https://github.com/mikro-orm/mikro-orm/commit/a41c49884c8c958acb3d4576d0f301ed0d5c38bf)), closes [#&#8203;7009](https://github.com/mikro-orm/mikro-orm/issues/7009) ### [`v6.6.1`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#661-2025-11-25) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.6.0...v6.6.1) ##### Bug Fixes - **core:** try to infer property types regardless of `inferDefaultValues` option ([98eef5e](https://github.com/mikro-orm/mikro-orm/commit/98eef5e58b132d10166bd59d5dd7622aecde2090)) - **mongo:** fix processing of nested lazy scalar properties ([94927c6](https://github.com/mikro-orm/mikro-orm/commit/94927c6f0826db7a5a1584adfe8a72266a0f1d62)), closes [#&#8203;6994](https://github.com/mikro-orm/mikro-orm/issues/6994) - **mongo:** respect property `fieldName` on index creation ([#&#8203;6979](https://github.com/mikro-orm/mikro-orm/issues/6979)) ([44998c0](https://github.com/mikro-orm/mikro-orm/commit/44998c0f6804b7a86a336a8fa69b69b1096bcd77)), closes [#&#8203;6978](https://github.com/mikro-orm/mikro-orm/issues/6978) - **mysql:** ensure raw values are rehydrated after flush ([9a86383](https://github.com/mikro-orm/mikro-orm/commit/9a863836f50eceacf12cdbe83b30da522b43592d)), closes [#&#8203;6968](https://github.com/mikro-orm/mikro-orm/issues/6968) - **query-builder:** do not require transaction when for `LockMode.NONE` ([6c2a4b6](https://github.com/mikro-orm/mikro-orm/commit/6c2a4b69a5f4fe030b646d821a84809c589bd62a)), closes [#&#8203;6969](https://github.com/mikro-orm/mikro-orm/issues/6969) ##### Performance Improvements - **core:** simplify processing of scalars that use simple ORM provided type classes ([15d7e74](https://github.com/mikro-orm/mikro-orm/commit/15d7e748906370f834a8a8419027bf7237e50b57)) ### [`v6.6.0`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#660-2025-11-11) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.9...v6.6.0) ##### Bug Fixes - **core:** do not ignore updating the whole inlined embedded property to `null` ([d0913f1](https://github.com/mikro-orm/mikro-orm/commit/d0913f1962059e5b38680a0b2b64814fd5d4e878)), closes [#&#8203;6966](https://github.com/mikro-orm/mikro-orm/issues/6966) - **core:** ensure base properties in STI entities won't be ignored when overridden in one child ([b31ffec](https://github.com/mikro-orm/mikro-orm/commit/b31ffec52b06f69b6c623242c0ba1533d9fedbce)), closes [#&#8203;6957](https://github.com/mikro-orm/mikro-orm/issues/6957) - **core:** ensure original entity data are in correct shape after merging ([7a30cca](https://github.com/mikro-orm/mikro-orm/commit/7a30ccac3649539798d15792955afe1e96f835f4)), closes [#&#8203;6951](https://github.com/mikro-orm/mikro-orm/issues/6951) - **core:** rehydrate nullable to-one properties that were discarded via filters with select-in strategy ([3d58538](https://github.com/mikro-orm/mikro-orm/commit/3d585387a303e89ea34217fe4878dff9e91ffb87)), closes [#&#8203;6460](https://github.com/mikro-orm/mikro-orm/issues/6460) - **core:** support falsy values in scalar references ([#&#8203;6942](https://github.com/mikro-orm/mikro-orm/issues/6942)) ([a02c2a8](https://github.com/mikro-orm/mikro-orm/commit/a02c2a881a48e3ab39b02f60fb64d382ce771717)) - **core:** support type detection on classes with dots in their names like `Temporal.Instant` ([8cca4a8](https://github.com/mikro-orm/mikro-orm/commit/8cca4a878b681af40d6e8929ae664bc833e61b0b)), closes [#&#8203;6953](https://github.com/mikro-orm/mikro-orm/issues/6953) - **postgres:** allow executing schema queries via knex in migrations ([5196f24](https://github.com/mikro-orm/mikro-orm/commit/5196f24aae3e6efff7539a031c9741cf9bb38f4b)), closes [#&#8203;6949](https://github.com/mikro-orm/mikro-orm/issues/6949) - **reflection:** support string literal properties ([#&#8203;6960](https://github.com/mikro-orm/mikro-orm/issues/6960)) ([148ac75](https://github.com/mikro-orm/mikro-orm/commit/148ac750b56c7392582cd040711fa152bef77918)) ##### Features - **core:** allow control over relation filters in entity definition ([#&#8203;6959](https://github.com/mikro-orm/mikro-orm/issues/6959)) ([28a7e44](https://github.com/mikro-orm/mikro-orm/commit/28a7e4416796ad6b49ee3a6cd5d8cee4b11f5f1b)), closes [#&#8203;6457](https://github.com/mikro-orm/mikro-orm/issues/6457) - **core:** allow defining filters on nullable relations as strict ([#&#8203;6952](https://github.com/mikro-orm/mikro-orm/issues/6952)) ([1dae6cf](https://github.com/mikro-orm/mikro-orm/commit/1dae6cf6b4e0a5e15b6760d80239261547493699)), closes [#&#8203;6784](https://github.com/mikro-orm/mikro-orm/issues/6784) [#&#8203;6943](https://github.com/mikro-orm/mikro-orm/issues/6943) [#&#8203;6784](https://github.com/mikro-orm/mikro-orm/issues/6784) - **core:** allow disabling filters on relations ([7798e57](https://github.com/mikro-orm/mikro-orm/commit/7798e575700498bda51a15354eddccbf39b3213a)), closes [#&#8203;6457](https://github.com/mikro-orm/mikro-orm/issues/6457) - **core:** support private properties with get/set accessors ([#&#8203;6967](https://github.com/mikro-orm/mikro-orm/issues/6967)) ([659ca93](https://github.com/mikro-orm/mikro-orm/commit/659ca936487d5d060ed07d16f1fb4d6cac3eb5fe)), closes [#&#8203;6932](https://github.com/mikro-orm/mikro-orm/issues/6932) - **entity-generator:** allow generating enums as type or JS dictionary ([#&#8203;6956](https://github.com/mikro-orm/mikro-orm/issues/6956)) ([ccf24df](https://github.com/mikro-orm/mikro-orm/commit/ccf24df60609775d34dd25cddd0ddb79ffde884b)), closes [#&#8203;6457](https://github.com/mikro-orm/mikro-orm/issues/6457) - **entity-generator:** support generating `defineEntity()` definitions ([#&#8203;6954](https://github.com/mikro-orm/mikro-orm/issues/6954)) ([d523f13](https://github.com/mikro-orm/mikro-orm/commit/d523f138060b3e70646c86a5a1724cabcba430a4)) - **entity-generator:** support native postgres enums ([#&#8203;6958](https://github.com/mikro-orm/mikro-orm/issues/6958)) ([746e4bf](https://github.com/mikro-orm/mikro-orm/commit/746e4bf547f8ff7bf69985bfa74cd2eaae5e03e6)) - **knex:** reexport `raw` helper that supports `QueryBuilder` and `Knex.QueryBuilder` ([#&#8203;6955](https://github.com/mikro-orm/mikro-orm/issues/6955)) ([897cc7f](https://github.com/mikro-orm/mikro-orm/commit/897cc7f831157e894f9f957ceb04770f71b614e6)), closes [#&#8203;6751](https://github.com/mikro-orm/mikro-orm/issues/6751) [#&#8203;6782](https://github.com/mikro-orm/mikro-orm/issues/6782) - **postgres:** skip left joined relations from pessimistic locks automatically ([ffb71a1](https://github.com/mikro-orm/mikro-orm/commit/ffb71a1237924163f979128c528efbb1b6e786a9)), closes [#&#8203;6412](https://github.com/mikro-orm/mikro-orm/issues/6412) #### [6.5.9](https://github.com/mikro-orm/mikro-orm/compare/v6.5.8...v6.5.9) (2025-10-23) ##### Bug Fixes - **core:** add some missing options to `defineEntity` relation builders ([#&#8203;6922](https://github.com/mikro-orm/mikro-orm/issues/6922)) ([3bedcca](https://github.com/mikro-orm/mikro-orm/commit/3bedccac95ac194100ae1187bfdba0e0001b115d)) - **core:** ensure correct state of custom typed data after merging to existing results ([5907da0](https://github.com/mikro-orm/mikro-orm/commit/5907da000253ea9c94ff53cdc213c82683538721)), closes [#&#8203;6926](https://github.com/mikro-orm/mikro-orm/issues/6926) - **core:** fix extra updates caused by `em.refresh` ([3d12a8b](https://github.com/mikro-orm/mikro-orm/commit/3d12a8b97a83797bb8de6818a4f49b2fb40aef1f)), closes [#&#8203;6940](https://github.com/mikro-orm/mikro-orm/issues/6940) - **core:** support auto-discovery of relation targets with `defineEntity` ([a93f2e0](https://github.com/mikro-orm/mikro-orm/commit/a93f2e0e5b3371851b736baa1369305ff6475e89)) - **core:** support custom classes in `defineEntity` relation property builders ([8a03eca](https://github.com/mikro-orm/mikro-orm/commit/8a03ecabe4a899a2b288b65f62b7e0bb14dc635c)) - **core:** update `extends` type in `defineEntity` and `EntitySchema` ([#&#8203;6936](https://github.com/mikro-orm/mikro-orm/issues/6936)) ([589d0f3](https://github.com/mikro-orm/mikro-orm/commit/589d0f302fb7fa32bd813315672e6d12ff50c912)) - **postgres:** do not create non-autoincrement simple PKs twice ([89e139e](https://github.com/mikro-orm/mikro-orm/commit/89e139ee3a28a4f2ced1c11098341881b7b8849e)) #### [6.5.8](https://github.com/mikro-orm/mikro-orm/compare/v6.5.7...v6.5.8) (2025-10-13) ##### Bug Fixes - **core:** don't skip diffing of non-hydrated properties ([4a46bd8](https://github.com/mikro-orm/mikro-orm/commit/4a46bd824a4affd857cd1a4cb9e2ca91c9630bcc)), closes [#&#8203;6918](https://github.com/mikro-orm/mikro-orm/issues/6918) - **core:** enhance `mapToPk()` and remove default `ref: true` in `defineEntity` helper ([#&#8203;6919](https://github.com/mikro-orm/mikro-orm/issues/6919)) ([f0d4e8e](https://github.com/mikro-orm/mikro-orm/commit/f0d4e8e07f1a0a872643275ccf6b846dd52bf17f)) - **core:** improve auto flush detection for STI base classes ([da5e993](https://github.com/mikro-orm/mikro-orm/commit/da5e993d534d22f14794e10b4228fe2cf03fb6fb)) - **core:** rework support for partial loading of embedded properties ([29091aa](https://github.com/mikro-orm/mikro-orm/commit/29091aa29076f2bc3fe0a4d2d362ce5c3cdde578)), closes [#&#8203;6907](https://github.com/mikro-orm/mikro-orm/issues/6907) - **core:** support class-based entity definitions with `defineEntity` ([#&#8203;6920](https://github.com/mikro-orm/mikro-orm/issues/6920)) ([aa7295e](https://github.com/mikro-orm/mikro-orm/commit/aa7295e423da79d6b385b59fea9fbb75d20e933d)), closes [/github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14465227](https://github.com//github.com/mikro-orm/mikro-orm/discussions/6865/issues/discussioncomment-14465227) - **mongo:** support indexes on JSON properties ([a9edc05](https://github.com/mikro-orm/mikro-orm/commit/a9edc05e92783919bd3c867314670271c25ef089)), closes [#&#8203;6899](https://github.com/mikro-orm/mikro-orm/issues/6899) - **mongo:** support upsert with nested `onConflictFields` on JSON properties ([4eab82e](https://github.com/mikro-orm/mikro-orm/commit/4eab82e63c8bcd04835ba6cfa5de69c935cb17d4)), closes [#&#8203;6900](https://github.com/mikro-orm/mikro-orm/issues/6900) - **query-builder:** do not ignore nested joins inside nested joins ([a37d6fa](https://github.com/mikro-orm/mikro-orm/commit/a37d6fad0a952543c0354021c7d3c57d63877e34)) - **schema:** fix down migrations with `createForeignKeyConstraint` property option ([23e898b](https://github.com/mikro-orm/mikro-orm/commit/23e898b8fdc88cca0ba3a5f49744babc61df5f0c)), closes [#&#8203;6903](https://github.com/mikro-orm/mikro-orm/issues/6903) - **schema:** support raw fragments in check constraint expressions ([ff360b0](https://github.com/mikro-orm/mikro-orm/commit/ff360b0b3dc83c1b63b38d2fa2e818aa351e6005)), closes [#&#8203;6914](https://github.com/mikro-orm/mikro-orm/issues/6914) ##### Features - **core:** improve type-level support for composite keys with `defineEntity` helper ([#&#8203;6912](https://github.com/mikro-orm/mikro-orm/issues/6912)) ([2d39dd0](https://github.com/mikro-orm/mikro-orm/commit/2d39dd012280209fed7fe9b728903a5225547220)) #### [6.5.7](https://github.com/mikro-orm/mikro-orm/compare/v6.5.6...v6.5.7) (2025-10-06) ##### Bug Fixes - **core:** enhance branded type definitions for `Opt`, `Hidden`, `Config` and `RequiredNullable` ([#&#8203;6884](https://github.com/mikro-orm/mikro-orm/issues/6884)) ([6ce418d](https://github.com/mikro-orm/mikro-orm/commit/6ce418d0e9a83f6e40939a5f41ff67850f43e28f)) - **core:** ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances ([#&#8203;6902](https://github.com/mikro-orm/mikro-orm/issues/6902)) ([51feb3b](https://github.com/mikro-orm/mikro-orm/commit/51feb3b67ce05640ca7fa3b12133597b1834b1f8)), closes [#&#8203;6885](https://github.com/mikro-orm/mikro-orm/issues/6885) - **core:** mark `autoincrement` properties with `Opt` type in `defineEntity` helper ([#&#8203;6910](https://github.com/mikro-orm/mikro-orm/issues/6910)) ([e2a8ed4](https://github.com/mikro-orm/mikro-orm/commit/e2a8ed44dce368b97defd78e4b532b4932c045c5)) - **core:** prefer `id` property over `uuid` property for default PK inference ([7a9c834](https://github.com/mikro-orm/mikro-orm/commit/7a9c834c64597730dad7193a494de6c0ef218d05)), closes [#&#8203;6865](https://github.com/mikro-orm/mikro-orm/issues/6865) - **core:** skip entity validation when propagating to upper context in `em.transactional` ([a3941a1](https://github.com/mikro-orm/mikro-orm/commit/a3941a1cb84adbbf9874e4520b4eeb9d8aa042be)), closes [#&#8203;6895](https://github.com/mikro-orm/mikro-orm/issues/6895) - **query-builder:** expand embeddable fields on select ([#&#8203;6896](https://github.com/mikro-orm/mikro-orm/issues/6896)) ([6b76f60](https://github.com/mikro-orm/mikro-orm/commit/6b76f60dd954cdab75115be962eb13af5726524a)) - **query-builder:** support embedded fields in join conditions ([#&#8203;6897](https://github.com/mikro-orm/mikro-orm/issues/6897)) ([409e0ef](https://github.com/mikro-orm/mikro-orm/commit/409e0ef058bee33fd1082394d22eec269ab84768)), closes [#&#8203;6883](https://github.com/mikro-orm/mikro-orm/issues/6883) ##### Features - **mongo:** implement optimistic locking support for version properties ([#&#8203;6887](https://github.com/mikro-orm/mikro-orm/issues/6887)) ([591fb43](https://github.com/mikro-orm/mikro-orm/commit/591fb43cf9ef420015e742ef735b81e7b218a062)), closes [#&#8203;3612](https://github.com/mikro-orm/mikro-orm/issues/3612) [mikro-orm/mikro-orm#3612](https://github.com/mikro-orm/mikro-orm/issues/3612) ##### Performance Improvements - optimize merging of entities to upper context after `em.transactional` ([36bdc43](https://github.com/mikro-orm/mikro-orm/commit/36bdc43772d06635f0db94296ad47241e40aa63d)), closes [#&#8203;6905](https://github.com/mikro-orm/mikro-orm/issues/6905) - optimize merging of entities to upper context after `em.transactional` ([b29e88c](https://github.com/mikro-orm/mikro-orm/commit/b29e88cbd527ee8e2c08cb5d32199dd9c9615d8f)), closes [#&#8203;6890](https://github.com/mikro-orm/mikro-orm/issues/6890) - optimize merging of entities to upper context after `em.transactional` when it's empty ([b7751d5](https://github.com/mikro-orm/mikro-orm/commit/b7751d55abf5bd2ca421545dc81d8cab33e38b12)), closes [#&#8203;6890](https://github.com/mikro-orm/mikro-orm/issues/6890) #### [6.5.6](https://github.com/mikro-orm/mikro-orm/compare/v6.5.5...v6.5.6) (2025-09-25) ##### Bug Fixes - **core:** account for nullability when applying default value ([#&#8203;6880](https://github.com/mikro-orm/mikro-orm/issues/6880)) ([9763275](https://github.com/mikro-orm/mikro-orm/commit/976327510e61a749f9c732bb763055322d4f0dd5)), closes [#&#8203;6879](https://github.com/mikro-orm/mikro-orm/issues/6879) - **core:** enhance type of bigint, array, decimal properties when using `defineEntity` helper ([#&#8203;6873](https://github.com/mikro-orm/mikro-orm/issues/6873)) ([42e7df1](https://github.com/mikro-orm/mikro-orm/commit/42e7df147dc1134cd9a52e8d953094df1d41b22a)), closes [/github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14483413](https://github.com//github.com/mikro-orm/mikro-orm/discussions/6865/issues/discussioncomment-14483413) - **core:** ensure `em.refresh` will refresh detached entities too ([c156e30](https://github.com/mikro-orm/mikro-orm/commit/c156e306449968ed4a94306dfe8b4270172e92b8)), closes [#&#8203;6867](https://github.com/mikro-orm/mikro-orm/issues/6867) - **core:** prevent stack overflow errors when populating relations on lots of entities with select-in strategy ([#&#8203;6874](https://github.com/mikro-orm/mikro-orm/issues/6874)) ([d5c23c7](https://github.com/mikro-orm/mikro-orm/commit/d5c23c7d1c78f3b1fd834f2d9c2a0d764bd29cb3)) ##### Features - **core:** allow sha256 hashing in `FileCacheAdapter` ([#&#8203;6866](https://github.com/mikro-orm/mikro-orm/issues/6866)) ([21d364d](https://github.com/mikro-orm/mikro-orm/commit/21d364d5b1af58498ee967c7e8d2ecbfee16bae7)) - **schema:** add `skipTables` and `skipColumns` options to schema generator ([#&#8203;6870](https://github.com/mikro-orm/mikro-orm/issues/6870)) ([5937ab6](https://github.com/mikro-orm/mikro-orm/commit/5937ab695d781f347fee67ddc5708ff4b5c46bac)), closes [#&#8203;5346](https://github.com/mikro-orm/mikro-orm/issues/5346) #### [6.5.5](https://github.com/mikro-orm/mikro-orm/compare/v6.5.4...v6.5.5) (2025-09-21) ##### Bug Fixes - **core:** add missing `IncludeCount` type argument to `repo.findByCursor()` ([34c9630](https://github.com/mikro-orm/mikro-orm/commit/34c963086e37c059ec9d2ece1fe988bfbeca2967)) - **core:** correctly diff nullable properties between undefined and null ([#&#8203;6864](https://github.com/mikro-orm/mikro-orm/issues/6864)) ([c30d1c9](https://github.com/mikro-orm/mikro-orm/commit/c30d1c9ffa6c133e99f411ba18d43d53dbb9fc5e)) - **core:** skip mapping undeclared columns that match a different property name ([#&#8203;6860](https://github.com/mikro-orm/mikro-orm/issues/6860)) ([b29527e](https://github.com/mikro-orm/mikro-orm/commit/b29527eb3ae7a9fe7a2a1a31f7fccbf9c9f4a7cd)), closes [#&#8203;6861](https://github.com/mikro-orm/mikro-orm/issues/6861) - **schema:** improve diffing of generated columns ([9a59ba6](https://github.com/mikro-orm/mikro-orm/commit/9a59ba68c08514db22a2e86fe282a6546b71d1ae)), closes [#&#8203;6858](https://github.com/mikro-orm/mikro-orm/issues/6858) #### [6.5.4](https://github.com/mikro-orm/mikro-orm/compare/v6.5.3...v6.5.4) (2025-09-17) ##### Bug Fixes - **core:** initialize collection properties after flushing an entity reference ([83ca9c1](https://github.com/mikro-orm/mikro-orm/commit/83ca9c14cc4fd443b45ea40f1945c5a249336747)), closes [#&#8203;6855](https://github.com/mikro-orm/mikro-orm/issues/6855) - **core:** support inference of default value from property initializer with `ref()` ([56e441d](https://github.com/mikro-orm/mikro-orm/commit/56e441dbfe2978c1497fc067ccb3409fabc5a4b7)), closes [#&#8203;6853](https://github.com/mikro-orm/mikro-orm/issues/6853) - **query-builder:** fix aliasing of 1:1 inverse side when used in a filter nested inside M:N relation ([61969f6](https://github.com/mikro-orm/mikro-orm/commit/61969f6769513f017c245a7a28c8b9ec2cfd6b51)), closes [#&#8203;6851](https://github.com/mikro-orm/mikro-orm/issues/6851) #### [6.5.3](https://github.com/mikro-orm/mikro-orm/compare/v6.5.2...v6.5.3) (2025-09-13) ##### Bug Fixes - **core:** align implementation of filters in `em.find` and `em.count` ([ead5074](https://github.com/mikro-orm/mikro-orm/commit/ead5074f0ac9fa5febc81ea8861db6374dba3209)), closes [#&#8203;6823](https://github.com/mikro-orm/mikro-orm/issues/6823) - **core:** export `RequiredNullable` from `@mikro-orm/core` ([#&#8203;6836](https://github.com/mikro-orm/mikro-orm/issues/6836)) ([961ee74](https://github.com/mikro-orm/mikro-orm/commit/961ee74b4a7a8bff1c744e63abf0c5c1141afed6)) - **core:** fix propagation from `em.transactional` with composite custom type PK ([0b82f43](https://github.com/mikro-orm/mikro-orm/commit/0b82f43b9fee50c749769de5766cebf7d7ffcba3)), closes [#&#8203;6825](https://github.com/mikro-orm/mikro-orm/issues/6825) - **core:** include hidden properties when refreshing via `em.refresh()` ([9a7bbc3](https://github.com/mikro-orm/mikro-orm/commit/9a7bbc3b2a8d9e03972f69c419edc0dffe2b1f0c)), closes [#&#8203;6828](https://github.com/mikro-orm/mikro-orm/issues/6828) - **query-builder:** properly wrap composite keys in join conditions ([#&#8203;6831](https://github.com/mikro-orm/mikro-orm/issues/6831)) ([b720ca5](https://github.com/mikro-orm/mikro-orm/commit/b720ca53c247ec27570ad56278ab11e4a57d763e)), closes [#&#8203;6830](https://github.com/mikro-orm/mikro-orm/issues/6830) - **query-builder:** skip branching on to-one joins ([#&#8203;6826](https://github.com/mikro-orm/mikro-orm/issues/6826)) ([65812c4](https://github.com/mikro-orm/mikro-orm/commit/65812c4db887086ebb78022490de73028379c073)), closes [#&#8203;6824](https://github.com/mikro-orm/mikro-orm/issues/6824) #### [6.5.2](https://github.com/mikro-orm/mikro-orm/compare/v6.5.1...v6.5.2) (2025-09-02) ##### Bug Fixes - **core:** process owning sides of M:N relations in `em.assign` with `onlyOwnProperties` ([#&#8203;6822](https://github.com/mikro-orm/mikro-orm/issues/6822)) ([099869f](https://github.com/mikro-orm/mikro-orm/commit/099869fea507d20a0b45c3abf31e592c2d348eac)), closes [#&#8203;6813](https://github.com/mikro-orm/mikro-orm/issues/6813) - **migrations:** improve extraction of Migration class ([2dacc4b](https://github.com/mikro-orm/mikro-orm/commit/2dacc4b8de84ccd0500b8819098d190592f9fbc2)), closes [#&#8203;6817](https://github.com/mikro-orm/mikro-orm/issues/6817) - **query-builder:** fix aliasing of conditions targeting a nested composite FK ([b159342](https://github.com/mikro-orm/mikro-orm/commit/b159342a90718148e5a36f80917402d9e99c5746)), closes [#&#8203;6819](https://github.com/mikro-orm/mikro-orm/issues/6819) - **query-builder:** fix join conditions targeting a composite FK ([3f88e9b](https://github.com/mikro-orm/mikro-orm/commit/3f88e9b278291e18ef6a116b413848714bdf5a94)), closes [#&#8203;6819](https://github.com/mikro-orm/mikro-orm/issues/6819) - **query-builder:** fix processing deeply nested joins ([d033729](https://github.com/mikro-orm/mikro-orm/commit/d0337298cd1e3bdadd7b81fc7913708ef1f4ab78)), closes [#&#8203;6818](https://github.com/mikro-orm/mikro-orm/issues/6818) - **query-builder:** hydrate lazy properties regardless of populate hint ([8b45281](https://github.com/mikro-orm/mikro-orm/commit/8b452814408fcd28b9a190baa9d3a7cdc98bd676)) #### [6.5.1](https://github.com/mikro-orm/mikro-orm/compare/v6.5.0...v6.5.1) (2025-08-27) - **core:** add `indexName` argument to index expression callback ([b77c90f](https://github.com/mikro-orm/mikro-orm/commit/b77c90ff80f04217ac1712ce98aef9633cdcbf4f)) ### [`v6.5.9`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#659-2025-10-23) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.8...v6.5.9) ##### Bug Fixes - **core:** add some missing options to `defineEntity` relation builders ([#&#8203;6922](https://github.com/mikro-orm/mikro-orm/issues/6922)) ([3bedcca](https://github.com/mikro-orm/mikro-orm/commit/3bedccac95ac194100ae1187bfdba0e0001b115d)) - **core:** ensure correct state of custom typed data after merging to existing results ([5907da0](https://github.com/mikro-orm/mikro-orm/commit/5907da000253ea9c94ff53cdc213c82683538721)), closes [#&#8203;6926](https://github.com/mikro-orm/mikro-orm/issues/6926) - **core:** fix extra updates caused by `em.refresh` ([3d12a8b](https://github.com/mikro-orm/mikro-orm/commit/3d12a8b97a83797bb8de6818a4f49b2fb40aef1f)), closes [#&#8203;6940](https://github.com/mikro-orm/mikro-orm/issues/6940) - **core:** support auto-discovery of relation targets with `defineEntity` ([a93f2e0](https://github.com/mikro-orm/mikro-orm/commit/a93f2e0e5b3371851b736baa1369305ff6475e89)) - **core:** support custom classes in `defineEntity` relation property builders ([8a03eca](https://github.com/mikro-orm/mikro-orm/commit/8a03ecabe4a899a2b288b65f62b7e0bb14dc635c)) - **core:** update `extends` type in `defineEntity` and `EntitySchema` ([#&#8203;6936](https://github.com/mikro-orm/mikro-orm/issues/6936)) ([589d0f3](https://github.com/mikro-orm/mikro-orm/commit/589d0f302fb7fa32bd813315672e6d12ff50c912)) - **postgres:** do not create non-autoincrement simple PKs twice ([89e139e](https://github.com/mikro-orm/mikro-orm/commit/89e139ee3a28a4f2ced1c11098341881b7b8849e)) ### [`v6.5.8`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#658-2025-10-13) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.7...v6.5.8) ##### Bug Fixes - **core:** don't skip diffing of non-hydrated properties ([4a46bd8](https://github.com/mikro-orm/mikro-orm/commit/4a46bd824a4affd857cd1a4cb9e2ca91c9630bcc)), closes [#&#8203;6918](https://github.com/mikro-orm/mikro-orm/issues/6918) - **core:** enhance `mapToPk()` and remove default `ref: true` in `defineEntity` helper ([#&#8203;6919](https://github.com/mikro-orm/mikro-orm/issues/6919)) ([f0d4e8e](https://github.com/mikro-orm/mikro-orm/commit/f0d4e8e07f1a0a872643275ccf6b846dd52bf17f)) - **core:** improve auto flush detection for STI base classes ([da5e993](https://github.com/mikro-orm/mikro-orm/commit/da5e993d534d22f14794e10b4228fe2cf03fb6fb)) - **core:** rework support for partial loading of embedded properties ([29091aa](https://github.com/mikro-orm/mikro-orm/commit/29091aa29076f2bc3fe0a4d2d362ce5c3cdde578)), closes [#&#8203;6907](https://github.com/mikro-orm/mikro-orm/issues/6907) - **core:** support class-based entity definitions with `defineEntity` ([#&#8203;6920](https://github.com/mikro-orm/mikro-orm/issues/6920)) ([aa7295e](https://github.com/mikro-orm/mikro-orm/commit/aa7295e423da79d6b385b59fea9fbb75d20e933d)), closes [/github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14465227](https://github.com//github.com/mikro-orm/mikro-orm/discussions/6865/issues/discussioncomment-14465227) - **mongo:** support indexes on JSON properties ([a9edc05](https://github.com/mikro-orm/mikro-orm/commit/a9edc05e92783919bd3c867314670271c25ef089)), closes [#&#8203;6899](https://github.com/mikro-orm/mikro-orm/issues/6899) - **mongo:** support upsert with nested `onConflictFields` on JSON properties ([4eab82e](https://github.com/mikro-orm/mikro-orm/commit/4eab82e63c8bcd04835ba6cfa5de69c935cb17d4)), closes [#&#8203;6900](https://github.com/mikro-orm/mikro-orm/issues/6900) - **query-builder:** do not ignore nested joins inside nested joins ([a37d6fa](https://github.com/mikro-orm/mikro-orm/commit/a37d6fad0a952543c0354021c7d3c57d63877e34)) - **schema:** fix down migrations with `createForeignKeyConstraint` property option ([23e898b](https://github.com/mikro-orm/mikro-orm/commit/23e898b8fdc88cca0ba3a5f49744babc61df5f0c)), closes [#&#8203;6903](https://github.com/mikro-orm/mikro-orm/issues/6903) - **schema:** support raw fragments in check constraint expressions ([ff360b0](https://github.com/mikro-orm/mikro-orm/commit/ff360b0b3dc83c1b63b38d2fa2e818aa351e6005)), closes [#&#8203;6914](https://github.com/mikro-orm/mikro-orm/issues/6914) ##### Features - **core:** improve type-level support for composite keys with `defineEntity` helper ([#&#8203;6912](https://github.com/mikro-orm/mikro-orm/issues/6912)) ([2d39dd0](https://github.com/mikro-orm/mikro-orm/commit/2d39dd012280209fed7fe9b728903a5225547220)) ### [`v6.5.7`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#657-2025-10-06) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.6...v6.5.7) ##### Bug Fixes - **core:** enhance branded type definitions for `Opt`, `Hidden`, `Config` and `RequiredNullable` ([#&#8203;6884](https://github.com/mikro-orm/mikro-orm/issues/6884)) ([6ce418d](https://github.com/mikro-orm/mikro-orm/commit/6ce418d0e9a83f6e40939a5f41ff67850f43e28f)) - **core:** ensure nullable ScalarReference properties are loaded as initialized ScalarReference instances ([#&#8203;6902](https://github.com/mikro-orm/mikro-orm/issues/6902)) ([51feb3b](https://github.com/mikro-orm/mikro-orm/commit/51feb3b67ce05640ca7fa3b12133597b1834b1f8)), closes [#&#8203;6885](https://github.com/mikro-orm/mikro-orm/issues/6885) - **core:** mark `autoincrement` properties with `Opt` type in `defineEntity` helper ([#&#8203;6910](https://github.com/mikro-orm/mikro-orm/issues/6910)) ([e2a8ed4](https://github.com/mikro-orm/mikro-orm/commit/e2a8ed44dce368b97defd78e4b532b4932c045c5)) - **core:** prefer `id` property over `uuid` property for default PK inference ([7a9c834](https://github.com/mikro-orm/mikro-orm/commit/7a9c834c64597730dad7193a494de6c0ef218d05)), closes [#&#8203;6865](https://github.com/mikro-orm/mikro-orm/issues/6865) - **core:** skip entity validation when propagating to upper context in `em.transactional` ([a3941a1](https://github.com/mikro-orm/mikro-orm/commit/a3941a1cb84adbbf9874e4520b4eeb9d8aa042be)), closes [#&#8203;6895](https://github.com/mikro-orm/mikro-orm/issues/6895) - **query-builder:** expand embeddable fields on select ([#&#8203;6896](https://github.com/mikro-orm/mikro-orm/issues/6896)) ([6b76f60](https://github.com/mikro-orm/mikro-orm/commit/6b76f60dd954cdab75115be962eb13af5726524a)) - **query-builder:** support embedded fields in join conditions ([#&#8203;6897](https://github.com/mikro-orm/mikro-orm/issues/6897)) ([409e0ef](https://github.com/mikro-orm/mikro-orm/commit/409e0ef058bee33fd1082394d22eec269ab84768)), closes [#&#8203;6883](https://github.com/mikro-orm/mikro-orm/issues/6883) ##### Features - **mongo:** implement optimistic locking support for version properties ([#&#8203;6887](https://github.com/mikro-orm/mikro-orm/issues/6887)) ([591fb43](https://github.com/mikro-orm/mikro-orm/commit/591fb43cf9ef420015e742ef735b81e7b218a062)), closes [#&#8203;3612](https://github.com/mikro-orm/mikro-orm/issues/3612) [mikro-orm/mikro-orm#3612](https://github.com/mikro-orm/mikro-orm/issues/3612) ##### Performance Improvements - optimize merging of entities to upper context after `em.transactional` ([36bdc43](https://github.com/mikro-orm/mikro-orm/commit/36bdc43772d06635f0db94296ad47241e40aa63d)), closes [#&#8203;6905](https://github.com/mikro-orm/mikro-orm/issues/6905) - optimize merging of entities to upper context after `em.transactional` ([b29e88c](https://github.com/mikro-orm/mikro-orm/commit/b29e88cbd527ee8e2c08cb5d32199dd9c9615d8f)), closes [#&#8203;6890](https://github.com/mikro-orm/mikro-orm/issues/6890) - optimize merging of entities to upper context after `em.transactional` when it's empty ([b7751d5](https://github.com/mikro-orm/mikro-orm/commit/b7751d55abf5bd2ca421545dc81d8cab33e38b12)), closes [#&#8203;6890](https://github.com/mikro-orm/mikro-orm/issues/6890) ### [`v6.5.6`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#656-2025-09-25) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.5...v6.5.6) ##### Bug Fixes - **core:** account for nullability when applying default value ([#&#8203;6880](https://github.com/mikro-orm/mikro-orm/issues/6880)) ([9763275](https://github.com/mikro-orm/mikro-orm/commit/976327510e61a749f9c732bb763055322d4f0dd5)), closes [#&#8203;6879](https://github.com/mikro-orm/mikro-orm/issues/6879) - **core:** enhance type of bigint, array, decimal properties when using `defineEntity` helper ([#&#8203;6873](https://github.com/mikro-orm/mikro-orm/issues/6873)) ([42e7df1](https://github.com/mikro-orm/mikro-orm/commit/42e7df147dc1134cd9a52e8d953094df1d41b22a)), closes [/github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14483413](https://github.com//github.com/mikro-orm/mikro-orm/discussions/6865/issues/discussioncomment-14483413) - **core:** ensure `em.refresh` will refresh detached entities too ([c156e30](https://github.com/mikro-orm/mikro-orm/commit/c156e306449968ed4a94306dfe8b4270172e92b8)), closes [#&#8203;6867](https://github.com/mikro-orm/mikro-orm/issues/6867) - **core:** prevent stack overflow errors when populating relations on lots of entities with select-in strategy ([#&#8203;6874](https://github.com/mikro-orm/mikro-orm/issues/6874)) ([d5c23c7](https://github.com/mikro-orm/mikro-orm/commit/d5c23c7d1c78f3b1fd834f2d9c2a0d764bd29cb3)) ##### Features - **core:** allow sha256 hashing in `FileCacheAdapter` ([#&#8203;6866](https://github.com/mikro-orm/mikro-orm/issues/6866)) ([21d364d](https://github.com/mikro-orm/mikro-orm/commit/21d364d5b1af58498ee967c7e8d2ecbfee16bae7)) - **schema:** add `skipTables` and `skipColumns` options to schema generator ([#&#8203;6870](https://github.com/mikro-orm/mikro-orm/issues/6870)) ([5937ab6](https://github.com/mikro-orm/mikro-orm/commit/5937ab695d781f347fee67ddc5708ff4b5c46bac)), closes [#&#8203;5346](https://github.com/mikro-orm/mikro-orm/issues/5346) ### [`v6.5.5`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#655-2025-09-21) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.4...v6.5.5) ##### Bug Fixes - **core:** add missing `IncludeCount` type argument to `repo.findByCursor()` ([34c9630](https://github.com/mikro-orm/mikro-orm/commit/34c963086e37c059ec9d2ece1fe988bfbeca2967)) - **core:** correctly diff nullable properties between undefined and null ([#&#8203;6864](https://github.com/mikro-orm/mikro-orm/issues/6864)) ([c30d1c9](https://github.com/mikro-orm/mikro-orm/commit/c30d1c9ffa6c133e99f411ba18d43d53dbb9fc5e)) - **core:** skip mapping undeclared columns that match a different property name ([#&#8203;6860](https://github.com/mikro-orm/mikro-orm/issues/6860)) ([b29527e](https://github.com/mikro-orm/mikro-orm/commit/b29527eb3ae7a9fe7a2a1a31f7fccbf9c9f4a7cd)), closes [#&#8203;6861](https://github.com/mikro-orm/mikro-orm/issues/6861) - **schema:** improve diffing of generated columns ([9a59ba6](https://github.com/mikro-orm/mikro-orm/commit/9a59ba68c08514db22a2e86fe282a6546b71d1ae)), closes [#&#8203;6858](https://github.com/mikro-orm/mikro-orm/issues/6858) ### [`v6.5.4`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#654-2025-09-17) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.3...v6.5.4) ##### Bug Fixes - **core:** initialize collection properties after flushing an entity reference ([83ca9c1](https://github.com/mikro-orm/mikro-orm/commit/83ca9c14cc4fd443b45ea40f1945c5a249336747)), closes [#&#8203;6855](https://github.com/mikro-orm/mikro-orm/issues/6855) - **core:** support inference of default value from property initializer with `ref()` ([56e441d](https://github.com/mikro-orm/mikro-orm/commit/56e441dbfe2978c1497fc067ccb3409fabc5a4b7)), closes [#&#8203;6853](https://github.com/mikro-orm/mikro-orm/issues/6853) - **query-builder:** fix aliasing of 1:1 inverse side when used in a filter nested inside M:N relation ([61969f6](https://github.com/mikro-orm/mikro-orm/commit/61969f6769513f017c245a7a28c8b9ec2cfd6b51)), closes [#&#8203;6851](https://github.com/mikro-orm/mikro-orm/issues/6851) ### [`v6.5.3`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#653-2025-09-13) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.2...v6.5.3) ##### Bug Fixes - **core:** align implementation of filters in `em.find` and `em.count` ([ead5074](https://github.com/mikro-orm/mikro-orm/commit/ead5074f0ac9fa5febc81ea8861db6374dba3209)), closes [#&#8203;6823](https://github.com/mikro-orm/mikro-orm/issues/6823) - **core:** export `RequiredNullable` from `@mikro-orm/core` ([#&#8203;6836](https://github.com/mikro-orm/mikro-orm/issues/6836)) ([961ee74](https://github.com/mikro-orm/mikro-orm/commit/961ee74b4a7a8bff1c744e63abf0c5c1141afed6)) - **core:** fix propagation from `em.transactional` with composite custom type PK ([0b82f43](https://github.com/mikro-orm/mikro-orm/commit/0b82f43b9fee50c749769de5766cebf7d7ffcba3)), closes [#&#8203;6825](https://github.com/mikro-orm/mikro-orm/issues/6825) - **core:** include hidden properties when refreshing via `em.refresh()` ([9a7bbc3](https://github.com/mikro-orm/mikro-orm/commit/9a7bbc3b2a8d9e03972f69c419edc0dffe2b1f0c)), closes [#&#8203;6828](https://github.com/mikro-orm/mikro-orm/issues/6828) - **query-builder:** properly wrap composite keys in join conditions ([#&#8203;6831](https://github.com/mikro-orm/mikro-orm/issues/6831)) ([b720ca5](https://github.com/mikro-orm/mikro-orm/commit/b720ca53c247ec27570ad56278ab11e4a57d763e)), closes [#&#8203;6830](https://github.com/mikro-orm/mikro-orm/issues/6830) - **query-builder:** skip branching on to-one joins ([#&#8203;6826](https://github.com/mikro-orm/mikro-orm/issues/6826)) ([65812c4](https://github.com/mikro-orm/mikro-orm/commit/65812c4db887086ebb78022490de73028379c073)), closes [#&#8203;6824](https://github.com/mikro-orm/mikro-orm/issues/6824) ### [`v6.5.2`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#652-2025-09-02) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.1...v6.5.2) ##### Bug Fixes - **core:** process owning sides of M:N relations in `em.assign` with `onlyOwnProperties` ([#&#8203;6822](https://github.com/mikro-orm/mikro-orm/issues/6822)) ([099869f](https://github.com/mikro-orm/mikro-orm/commit/099869fea507d20a0b45c3abf31e592c2d348eac)), closes [#&#8203;6813](https://github.com/mikro-orm/mikro-orm/issues/6813) - **migrations:** improve extraction of Migration class ([2dacc4b](https://github.com/mikro-orm/mikro-orm/commit/2dacc4b8de84ccd0500b8819098d190592f9fbc2)), closes [#&#8203;6817](https://github.com/mikro-orm/mikro-orm/issues/6817) - **query-builder:** fix aliasing of conditions targeting a nested composite FK ([b159342](https://github.com/mikro-orm/mikro-orm/commit/b159342a90718148e5a36f80917402d9e99c5746)), closes [#&#8203;6819](https://github.com/mikro-orm/mikro-orm/issues/6819) - **query-builder:** fix join conditions targeting a composite FK ([3f88e9b](https://github.com/mikro-orm/mikro-orm/commit/3f88e9b278291e18ef6a116b413848714bdf5a94)), closes [#&#8203;6819](https://github.com/mikro-orm/mikro-orm/issues/6819) - **query-builder:** fix processing deeply nested joins ([d033729](https://github.com/mikro-orm/mikro-orm/commit/d0337298cd1e3bdadd7b81fc7913708ef1f4ab78)), closes [#&#8203;6818](https://github.com/mikro-orm/mikro-orm/issues/6818) - **query-builder:** hydrate lazy properties regardless of populate hint ([8b45281](https://github.com/mikro-orm/mikro-orm/commit/8b452814408fcd28b9a190baa9d3a7cdc98bd676)) ### [`v6.5.1`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#651-2025-08-27) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.5.0...v6.5.1) - **core:** add `indexName` argument to index expression callback ([b77c90f](https://github.com/mikro-orm/mikro-orm/commit/b77c90ff80f04217ac1712ce98aef9633cdcbf4f)) ### [`v6.5.0`](https://github.com/mikro-orm/mikro-orm/blob/HEAD/CHANGELOG.md#650-2025-08-27) [Compare Source](https://github.com/mikro-orm/mikro-orm/compare/v6.4.16...v6.5.0) ##### Bug Fixes - **core:** allow querying embeddables for `null` values via collection operators ([d7b25a7](https://github.com/mikro-orm/mikro-orm/commit/d7b25a70f9b7b8d231906abed634e5a15f4a8d55)), closes [#&#8203;6736](https://github.com/mikro-orm/mikro-orm/issues/6736) - **core:** do not fail version mismatch checks when getting the current version fails ([086d767](https://github.com/mikro-orm/mikro-orm/commit/086d7676cc72cae1d1f5686dfcafa55a4caadb8d)), closes [#&#8203;6765](https://github.com/mikro-orm/mikro-orm/issues/6765) - **core:** do not propagate changes to collections when partially loaded ([7068b35](https://github.com/mikro-orm/mikro-orm/commit/7068b352b77938b002d5c53c6316b16a70df112d)), closes [#&#8203;6732](https://github.com/mikro-orm/mikro-orm/issues/6732) [#&#8203;6734](https://github.com/mikro-orm/mikro-orm/issues/6734) - **core:** ensure `em.transactional` context propagation won't result in breaking identity map ([2b608fc](https://github.com/mikro-orm/mikro-orm/commit/2b608fc3c994ee179ab5363576fee0bf99bd028f)), closes [#&#8203;6764](https://github.com/mikro-orm/mikro-orm/issues/6764) - **core:** ensure correct runtime value of `decimal` and `float` properties ([#&#8203;6807](https://github.com/mikro-orm/mikro-orm/issues/6807)) ([7cd8b1c](https://github.com/mikro-orm/mikro-orm/commit/7cd8b1ce34e83e30381fc50e49b88db1f5894841)), closes [#&#8203;6806](https://github.com/mikro-orm/mikro-orm/issues/6806) [#&#8203;6806](https://github.com/mikro-orm/mikro-orm/issues/6806) - **core:** fix extra updates after `em.refresh` on nested entities with embeddables ([640985c](https://github.com/mikro-orm/mikro-orm/commit/640985ce33cb3c09387715598ba0329ea9f44a39)), closes [#&#8203;6705](https://github.com/mikro-orm/mikro-orm/issues/6705) - **core:** fix fetching of autoincrement PK when upserting without a unique value ([0dccac7](https://github.com/mikro-orm/mikro-orm/commit/0dccac7d5864ccb0ecec5e03ebf60ddd37dc1e62)), closes [#&#8203;6755](https://github.com/mikro-orm/mikro-orm/issues/6755) - **core:** fix hydration with select-in strategy and PKs with custom types ([#&#8203;6808](https://github.com/mikro-orm/mikro-orm/issues/6808)) ([4770462](https://github.com/mikro-orm/mikro-orm/commit/477046203212109b9c76e5745a66fd73ffb8eef7)), closes [#&#8203;6726](https://github.com/mikro-orm/mikro-orm/issues/6726) - **core:** fix querying by a nested FK as PK ([c2c5bfd](https://github.com/mikro-orm/mikro-orm/commit/c2c5bfd91d29594b26b8d620b57e34b0a655a57f)) - **core:** hydrate persisted getters without setters unless explicitly disabled ([459329a](https://github.com/mikro-orm/mikro-orm/commit/459329abb05925b3d124eeba57056266f78d86e5)), closes [#&#8203;6723](https://github.com/mikro-orm/mikro-orm/issues/6723) - **core:** ignore properties with `hydrate: false` from change tracking ([4a6fb9b](https://github.com/mikro-orm/mikro-orm/commit/4a6fb9bc80c13340b4fa32ee51eec63453fa916d)), closes [#&#8203;6723](https://github.com/mikro-orm/mikro-orm/issues/6723) - **core:** improve detection of empty flush ([6debac9](https://github.com/mikro-orm/mikro-orm/commit/6debac94b2176f905917e554e2af4fc220a5e7c7)) - **core:** respect joined filters in `em.count` ([323ffef](https://github.com/mikro-orm/mikro-orm/commit/323ffeffd2787726b9dcae3c74ce4b3721d9d75b)), closes [#&#8203;6666](https://github.com/mikro-orm/mikro-orm/issues/6666) - **core:** respect logger context in queries from `flush` and others ([#&#8203;6777](https://github.com/mikro-orm/mikro-orm/issues/6777)) ([083a1ee](https://github.com/mikro-orm/mikro-orm/commit/083a1eec70c065c49023d10363d976662e1daf4a)), closes [#&#8203;6776](https://github.com/mikro-orm/mikro-orm/issues/6776) - **core:** support cursor based pagination with `ScalarReference` properties ([84d20b1](https://github.com/mikro-orm/mikro-orm/commit/84d20b1335b9a563045ce91c24199214cb73f3c4)), closes [#&#8203;6793](https://github.com/mikro-orm/mikro-orm/issues/6793) - **core:** use `default` for missing values in multi insert for custom types ([eae635f](https://github.com/mikro-orm/mikro-orm/commit/eae635f7ff798c34d16985494b53e836dd893945)), closes [#&#8203;6727](https://github.com/mikro-orm/mikro-orm/issues/6727) - **postgres:** quote string array values with `''` instead of `\'` ([4bc1c9e](https://github.com/mikro-orm/mikro-orm/commit/4bc1c9e01d7b20f74650d3a0d4bd586ef467f5bf)) - **postgres:** support `primary key` with generated identity columns ([382d5b3](https://github.com/mikro-orm/mikro-orm/commit/382d5b30c3a5d789342d9df7256b91460d156e5c)), closes [#&#8203;6693](https://github.com/mikro-orm/mikro-orm/issues/6693) - **query-builder:** fix `qb.leftJoinAndSelect` with a subquery on M:N relations ([aa52abb](https://github.com/mikro-orm/mikro-orm/commit/aa52abbfa029006069051e8e85982e172eb234a7)) - **query-builder:** fix hydrating 1:1 inverse side via joined strategy ([d48359c](https://github.com/mikro-orm/mikro-orm/commit/d48359cb946ef0e9e84ad27920a11873f9b3aa08)) - **query-builder:** support group operators inside join conditions ([#&#8203;6796](https://github.com/mikro-orm/mikro-orm/issues/6796)) ([efe5a56](https://github.com/mikro-orm/mikro-orm/commit/efe5a568c6a32fb6f1d50744d5d763b4a8026b63)), closes [#&#8203;6795](https://github.com/mikro-orm/mikro-orm/issues/6795) - **reflection:** unwrap `runtimeType` to support correct hydration of scalar references ([ff6a7ae](https://github.com/mikro-orm/mikro-orm/commit/ff6a7ae96d4ec7ec5517c25b72a0d40bf6acce20)), closes [#&#8203;5557](https://github.com/mikro-orm/mikro-orm/issues/5557) - **reflection:** unwrap `ScalarRef<T>` and `EntityRef<T>` type ([6b1a349](https://github.com/mikro-orm/mikro-orm/commit/6b1a3494780f55130d4240109cba8e7af4131c89)), closes [#&#8203;5557](https://github.com/mikro-orm/mikro-orm/issues/5557) - **schema:** properly handle array defaults in mysql ([#&#8203;6703](https://github.com/mikro-orm/mikro-orm/issues/6703)) ([534193c](https://github.com/mikro-orm/mikro-orm/commit/534193c327b2721ffae1703ddd259eb0a3a2cbe4)), closes [#&#8203;6688](https://github.com/mikro-orm/mikro-orm/issues/6688) - **sql:** correctly handle lazy scalar properties with custom types ([#&#8203;6715](https://github.com/mikro-orm/mikro-orm/issues/6715)) ([c8add75](https://github.com/mikro-orm/mikro-orm/commit/c8add75959e45d93bb2d5ce6e631091523b5b780)) - **sql:** fix computing `order by` clause when ordering by a not populated relation ([b8a7984](https://github.com/mikro-orm/mikro-orm/commit/b8a7984f5c2175dae3ebfa272cd97fa24a626256)), closes [#&#8203;6757](https://github.com/mikro-orm/mikro-orm/issues/6757) ##### Features - **core:** add `balanced` loading strategy ([#&#8203;6787](https://github.com/mikro-orm/mikro-orm/issues/6787)) ([a7bff86](https://github.com/mikro-orm/mikro-orm/commit/a7bff8682c09e49a5baecc92d4cdc09ee2aad932)), closes [#&#8203;6129](https://github.com/mikro-orm/mikro-orm/issues/6129) - **core:** add `loadOrFail` to `ScalarReference` wrapper ([#&#8203;6716](https://github.com/mikro-orm/mikro-orm/issues/6716)) ([dcff19f](https://github.com/mikro-orm/mikro-orm/commit/dcff19f4651b3f7eeacb393048951fc7726fa2bb)) - **core:** add `RequiredNullable` helper type ([#&#8203;6756](https://github.com/mikro-orm/mikro-orm/issues/6756)) ([71f5153](https://github.com/mikro-orm/mikro-orm/commit/71f515391a2a182d80a7e8a319738624763d0311)), closes [6744](https://github.com/mikro-orm/mikro-orm/discussions/6744) - **core:** add comprehensive transaction propagation support ([#&#8203;6802](https://github.com/mikro-orm/mikro-orm/issues/6802)) ([19ebac4](https://github.com/mikro-orm/mikro-orm/commit/19ebac464d87ec73576d354bd1dda817d4d40539)), closes [#&#8203;6788](https://github.com/mikro-orm/mikro-orm/issues/6788) - **core:** allow defining entities with inferred interfaces ([#&#8203;6253](https://github.com/mikro-orm/mikro-orm/issues/6253)) ([1e6961a](https://github.com/mikro-orm/mikro-orm/commit/1e6961ac16068836d0baea13239cc5ac468789cb)), closes [#&#8203;6242](https://github.com/mikro-orm/mikro-orm/issues/6242) - **core:** allow triggering `onCreate` hooks during `em.create` ([#&#8203;6263](https://github.com/mikro-orm/mikro-orm/issues/6263)) ([1a2cc2e](https://github.com/mikro-orm/mikro-orm/commit/1a2cc2ec5e5f287cec4fc80762ae7b654c63d4cb)) - **core:** support `contextName` in `@Transactional` decorator ([#&#8203;6719](https://github.com/mikro-orm/mikro-orm/issues/6719)) ([9ce9499](https://github.com/mikro-orm/mikro-orm/commit/9ce9499b6c58d10f81bf00942c89c3b1b606ff0f)) - **schema:** allow disabling foreign key constraint creation, per relation ([#&#8203;6702](https://github.com/mikro-orm/mikro-orm/issues/6702)) ([79e6cb0](https://github.com/mikro-orm/mikro-orm/commit/79e6cb06b7526470443da7c64edf4698446be210)), closes [2548](https://github.com/mikro-orm/mikro-orm/issues/2548) - **schema:** allow wilcard-schema friendly index expression ([#&#8203;6706](https://github.com/mikro-orm/mikro-orm/issues/6706)) ([688043a](https://github.com/mikro-orm/mikro-orm/commit/688043acdc306b7d898fed55e70571a044ac8a4f)), closes [#&#8203;6446](https://github.com/mikro-orm/mikro-orm/issues/6446) - **sql:** refactor handling of filters on relations ([2d1b889](https://github.com/mikro-orm/mikro-orm/commit/2d1b889a4bda432219550b9650bd32f891d30142)), closes [#&#8203;6760](https://github.com/mikro-orm/mikro-orm/issues/6760) [#&#8203;6784](https://github.com/mikro-orm/mikro-orm/issues/6784) ##### Performance Improvements - **core:** make `em.refresh` faster for reloading large entity graphs ([a44f671](https://github.com/mikro-orm/mikro-orm/commit/a44f671dc1e4993560ce82d91786118a5acdc016)) - **sql:** speed up hydration of large to-many collections with joined strategy ([#&#8203;6801](https://github.com/mikro-orm/mikro-orm/issues/6801)) ([5faf30c](https://github.com/mikro-orm/mikro-orm/commit/5faf30c66180854c5ff58316baa4ba1cee26daac)) #### [6.4.16](https://github.com/mikro-orm/mikro-orm/compare/v6.4.15...v6.4.16) (2025-05-30) ##### Bug Fixes - **core:** fix extra updates after `em.refresh` is called on properties with custom types ([6a6167e](https://github.com/mikro-orm/mikro-orm/commit/6a6167e7dc8b809eebff69b145d62de293a425d0)), closes [#&#8203;6674](https://github.com/mikro-orm/mikro-orm/issues/6674) - **core:** fix implicit serialization when multiple populate hints are present ([dbf8f3c](https://github.com/mikro-orm/mikro-orm/commit/dbf8f3cc67114797f3fce8dc790d7a1173dc273f)), closes [#&#8203;6658](https://github.com/mikro-orm/mikro-orm/issues/6658) - **core:** support custom types in `type` option of version properties ([bd31fb6](https://github.com/mikro-orm/mikro-orm/commit/bd31fb65acfacee1fa471f28cd0651dc1e7cb787)) - **core:** unlink old 1:1 relation on the owning side when changing inverse side ([2f292cc](https://github.com/mikro-orm/mikro-orm/commit/2f292cced0623c4b2b034885de43eae915d19869)), closes [#&#8203;6655](https://github.com/mikro-orm/mikro-orm/issues/6655) - **core:** use explicit dataloader for M:N properties ([6372e4c](https://github.com/mikro-orm/mikro-orm/commit/6372e4c829f6e15764e05a196ee6aaf5d9071d32)), closes [#&#8203;6665](https://github.com/mikro-orm/mikro-orm/issues/6665) ##### Features - **mssql:** allow inserting when triggers are present in mssql tables ([#&#8203;6662](https://github.com/mikro-orm/mikro-orm/issues/6662)) ([efafb9b](https://github.com/mikro-orm/mikro-orm/commit/efafb9b1f8683ce7b25527f7b18644942d737b84)) - **query-builder:** validate wrong group operator position on scalar properties ([0f5ce3d](https://github.com/mikro-orm/mikro-orm/commit/0f5ce3d8e20f95bd90bf614a849840335becbc15)), closes [#&#8203;6684](https://github.com/mikro-orm/mikro-orm/issues/6684) #### [6.4.15](https://github.com/mikro-orm/mikro-orm/compare/v6.4.14...v6.4.15) (2025-05-09) ##### Bug Fixes - **cli:** improve detection of dependency versions for `debug` command ([2a8bcce](https://github.com/mikro-orm/mikro-orm/commit/2a8bcce2105b0c8799f5e8ec641ebb23ad815929)) - **core:** support dataloader for M:N without inverse side ([#&#8203;6053](https://github.com/mikro-orm/mikro-orm/issues/6053)) ([c319f1c](https://github.com/mikro-orm/mikro-orm/commit/c319f1cf50816889a9775833c1cc7198d7c7ce61)), closes [#&#8203;6031](https://github.com/mikro-orm/mikro-orm/issues/6031) [#&#8203;6502](https://github.com/mikro-orm/mikro-orm/issues/6502) [#&#8203;6503](https://github.com/mikro-orm/mikro-orm/issues/6503) - **postgres:** don't lowercase native enum labels when schema diffing ([469ff02](https://github.com/mikro-orm/mikro-orm/commit/469ff0291fd1df9c34a61f578e1123b456b6f979)), closes [#&#8203;6643](https://github.com/mikro-orm/mikro-orm/issues/6643) - **query-builder:** fix missing alias when joining relations via `populateWhere` ([6dd3ec7](https://github.com/mikro-orm/mikro-orm/commit/6dd3ec7ce7e5da745f933ed8dd854166b04a7433)), closes [#&#8203;6635](https://github.com/mikro-orm/mikro-orm/issues/6635) ##### Features - **core:** allow overriding embedded column name ([#&#8203;6642](https://github.com/mikro-orm/mikro-orm/issues/6642)) ([8b52077](https://github.com/mikro-orm/mikro-orm/commit/8b52077897e37102089c958f2b86db68f936bc9b)), closes [#&#8203;5361](https://github.com/mikro-orm/mikro-orm/issues/5361) [#&#8203;6641](https://github.com/mikro-orm/mikro-orm/issues/6641) #### [6.4.14](https://github.com/mikro-orm/mikro-orm/compare/v6.4.13...v6.4.14) (2025-05-05) ##### Bug Fixes - **core:** add support for zero count result cache ([#&#8203;6600](https://github.com/mikro-orm/mikro-orm/issues/6600)) ([3a8fdff](https://github.com/mikro-orm/mikro-orm/commit/3a8fdff9e4db0407802b0972d470f8aa3125b3a5)) - **core:** copy `EntitySchema` before processing the metadata ([cbf4a7f](https://github.com/mikro-orm/mikro-orm/commit/cbf4a7f72cba36e23da670945e5b6d3e982f6ea3)), closes [#&#8203;6540](https://github.com/mikro-orm/mikro-orm/issues/6540) - **core:** disallow passing array items to scalar array properties in `em.create` and `em.assign` ([1455027](https://github.com/mikro-orm/mikro-orm/commit/14550270981167db6cd477cffb29401bbb7a7f39)), closes [#&#8203;6609](https://github.com/mikro-orm/mikro-orm/issues/6609) - **core:** don't remove generated primary keys from entity snapshot ([980e53e](https://github.com/mikro-orm/mikro-orm/commit/980e53e3879ce009de7db4a1cac3abf969ca11c0)), closes [#&#8203;6593](https://github.com/mikro-orm/mikro-orm/issues/6593) - **core:** enforce correct runtime type when `object` gets inferred ([6e46afa](https://github.com/mikro-orm/mikro-orm/commit/6e46afa9add618293abaecd6b460ac01dc12da78)), closes [#&#8203;6633](https://github.com/mikro-orm/mikro-orm/issues/6633) - **core:** fix `orderBy` value type ([06f1a72](https://github.com/mikro-orm/mikro-orm/commit/06f1a72c459e1dc67d15f48617beb5e363d16718)) - **core:** respect `null` as a valid cache result ([#&#8203;6585](https://github.com/mikro-orm/mikro-orm/issues/6585)) ([e3bb8e4](https://github.com/mikro-orm/mikro-orm/commit/e3bb8e49f9e35bc86d248f0efddccc768b4cd31c)), closes [#&#8203;6584](https://github.com/mikro-orm/mikro-orm/issues/6584) - **core:** respect schema option when loading missing fields on upsert ([3bd72ea](https://github.com/mikro-orm/mikro-orm/commit/3bd72ea59f7cc5ef8f743d331b029ae95a7ae334)), closes [#&#8203;6622](https://github.com/mikro-orm/mikro-orm/issues/6622) - **mssql:** handle mapping for order by expressions with nulls first/last ([#&#8203;6618](https://github.com/mikro-orm/mikro-orm/issues/6618)) ([2cae74b](https://github.com/mikro-orm/mikro-orm/commit/2cae74b36c6930a3af4b187760384a75523815d4)) - **query-builder:** don't alias formula properties in join conditions ([34d1df4](https://github.com/mikro-orm/mikro-orm/commit/34d1df43860aba3fc9b1cf1c438eaa24943a4211)), closes [#&#8203;6620](https://github.com/mikro-orm/mikro-orm/issues/6620) ##### Features - **schema:** allow setting a custom FK constraint name ([#&#8203;6623](https://github.com/mikro-orm/mikro-orm/issues/6623)) ([9680c1c](https://github.com/mikro-orm/mikro-orm/commit/9680c1c7e288e83f8503d79c9a6073fc4cc0f9a7)), closes [#&#8203;6624](https://github.com/mikro-orm/mikro-orm/issues/6624) #### [6.4.13](https://github.com/mikro-orm/mikro-orm/compare/v6.4.12...v6.4.13) (2025-04-12) ##### Bug Fixes - **core:** allow passing `null` and `undefined` to `ref()` and respect it in return type ([2708c7a](https://github.com/mikro-orm/mikro-orm/commit/2708c7afdb28309d6d7c9eb370c42c4f8dfe172e)) - **core:** fix entity path discovery for bun 1.2.7 ([#&#8203;6564](https://github.com/mikro-orm/mikro-orm/issues/6564)) ([a749a4a](https://github.com/mikro-orm/mikro-orm/commit/a749a4a72b15954338b92b8104ee215e6e40ea98)) - **core:** fix type of a `Record` properties when mapping to `EntityDTO` ([e4ef475](https://github.com/mikro-orm/mikro-orm/commit/e4ef4750dc89cf18585da24b538b33f56273b116)) - **core:** ignore collection operators in auto-joined filter conditions ([c72c8c5](https://github.com/mikro-orm/mikro-orm/commit/c72c8c55823af4dd01e70ae76c96eaffdc33bb4e)), closes [#&#8203;6567](https://github.com/mikro-orm/mikro-orm/issues/6567) - **core:** make `populate` parameter of `em.populate()` readonly ([#&#8203;6580](https://github.com/mikro-orm/mikro-orm/issues/6580)) ([87d8c95](https://github.com/mikro-orm/mikro-orm/commit/87d8c953345b2cc06defa452bf1df1cdb27031b2)), closes [#&#8203;6579](https://github.com/mikro-orm/mikro-orm/issues/6579) - **core:** respect owner schema when persisting M:N with wildcard entities ([a53765f](https://github.com/mikro-orm/mikro-orm/commit/a53765f3bcd4ade9861a395f4063b5bee53a663a)), closes [#&#8203;6575](https://github.com/mikro-orm/mikro-orm/issues/6575) - **core:** skip extra populate query for nullable 1:1 inverse sides ([3a72ce5](https://github.com/mikro-orm/mikro-orm/commit/3a72ce5f0f7ec639735dcac51e7a91810560d72d)), closes [#&#8203;6568](https://github.com/mikro-orm/mikro-orm/issues/6568) - **mssql:** ensure formula properties are not selected twice when partial loading on a joined relation ([763db15](https://github.com/mikro-orm/mikro-orm/commit/763db153c307432a37effa7bf259e6844dd25fbb)), closes [#&#8203;6547](https://github.com/mikro-orm/mikro-orm/issues/6547) - **postgres:** fix schema diffing for `default` and `nullable` of check constraint enums ([#&#8203;6572](https://github.com/mikro-orm/mikro-orm/issues/6572)) ([db9b0bf](https://github.com/mikro-orm/mikro-orm/commit/db9b0bf004f4f2775c3b611eb1600338b09b6b01)), closes [#&#8203;6571](https://github.com/mikro-orm/mikro-orm/issues/6571) - **query-builder:** ignore nested relation filters when applying filters to auto-joined relations ([b9ac04c](https://github.com/mikro-orm/mikro-orm/commit/b9ac04c3bb50e321034ecf9a2598043660824a0d)), closes [#&#8203;6566](https://github.com/mikro-orm/mikro-orm/issues/6566) #### [6.4.12](https://github.com/mikro-orm/mikro-orm/compare/v6.4.11...v6.4.12) (2025-04-06) ##### Bug Fixes - **core:** clean up 1:m collections when changing the m:1 value ([a720927](https://github.com/mikro-orm/mikro-orm/commit/a720927de9abe4113a37b366a542024c3528a391)) - **core:** don't reset not selected values from existing entities ([2ebc7a8](https://github.com/mikro-orm/mikro-orm/commit/2ebc7a8972311247498b7c6030c0d5377416440a)), closes [#&#8203;6558](https://github.com/mikro-orm/mikro-orm/issues/6558) - **core:** fix populating m:n collection with custom types ([444c130](https://github.com/mikro-orm/mikro-orm/commit/444c130dd0423d03960e43843a54c149c4f525be)), closes [#&#8203;6477](https://github.com/mikro-orm/mikro-orm/issues/6477) - **core:** fix populating nested relations when parent entity is self referenced ([285a632](https://github.com/mikro-orm/mikro-orm/commit/285a63252f5e6cb7cac2158875c92b83f04b5c04)), closes [#&#8203;6531](https://github.com/mikro-orm/mikro-orm/issues/6531) - **core:** propagate composite FK values when inserting new entities ([9506cae](https://github.com/mikro-orm/mikro-orm/commit/9506cae51713c803b4848e9865361a350f4d641b)), closes [#&#8203;6430](https://github.com/mikro-orm/mikro-orm/issues/6430) - **mssql:** ensure `date` type is mapped to string instead of `Date` object ([098d71b](https://github.com/mikro-orm/mikro-orm/commit/098d71b7536b18111b73e72589e78aa34d2d26b9)), closes [#&#8203;6553](https://github.com/mikro-orm/mikro-orm/issues/6553) - **postgres:** fix schema diffing on m:1 relations targeting a native enum PK ([a76805e](https://github.com/mikro-orm/mikro-orm/commit/a76805eb3346153e4142bad5b1b8f3512010cc49)), closes [#&#8203;6557](https://github.com/mikro-orm/mikro-orm/issues/6557) - **postgres:** fix schema diffing on m:1 relations targeting a native enum PK ([e059375](https://github.com/mikro-orm/mikro-orm/commit/e05937579411828ec23dc0e787cba7efd63cca80)), closes [#&#8203;6557](https://github.com/mikro-orm/mikro-orm/issues/6557) ##### Features - **core:** add `includeCount` option to `em.findByCursor` ([#&#8203;6536](https://github.com/mikro-orm/mikro-orm/issues/6536)) ([eeae0d4](https://github.com/mikro-orm/mikro-orm/commit/eeae0d421d42752d52ddae62126adc25e6bf2cee)), closes [#&#8203;4626](https://github.com/mikro-orm/mikro-orm/issues/4626) #### [6.4.11](https://github.com/mikro-orm/mikro-orm/compare/v6.4.10...v6.4.11) (2025-03-21) ##### Bug Fixes - **core:** fix metadata validation for polymorphic embedded properties ([61bd2c3](https://github.com/mikro-orm/mikro-orm/commit/61bd2c3da05ef43fedde579622c54dea08e1f2ac)), closes [#&#8203;6522](https://github.com/mikro-orm/mikro-orm/issues/6522) - **core:** fix wildcard schema resolution on pivot tables ([c43afa6](https://github.com/mikro-orm/mikro-orm/commit/c43afa608baf5947621b4e19c70ee864f54c54a7)), closes [#&#8203;6516](https://github.com/mikro-orm/mikro-orm/issues/6516) - **core:** respect EM schema when populating nested relations with wildcard schema ([765eb69](https://github.com/mikro-orm/mikro-orm/commit/765eb69c3941c0ec87faf9d0a9f6d8818f8134a9)), closes [#&#8203;6511](https://github.com/mikro-orm/mikro-orm/issues/6511) - **mongo:** do not create migrations collection by default ([#&#8203;6517](https://github.com/mikro-orm/mikro-orm/issues/6517)) ([154dafc](https://github.com/mikro-orm/mikro-orm/commit/154dafc26d417a2ecb93c4c7081d5a05ff4ee924)) - **mssql:** fix upsert with an explicit merge array ([4b57d3a](https://github.com/mikro-orm/mikro-orm/commit/4b57d3a52aa422d1fcb671fc4805336d724a1aff)), closes [#&#8203;6534](https://github.com/mikro-orm/mikro-orm/issues/6534) - **postgres:** cockroachdb may not require `unmarshallArray` ([#&#8203;6501](https://github.com/mikro-orm/mikro-orm/issues/6501)) ([0661942](https://github.com/mikro-orm/mikro-orm/commit/0661942b009d5299c0a19ed688cc461b24d988a9)) - **sqlite:** do not ensure directory exists when `dbName` is `:memory:` or URL ([b0f97ed](https://github.com/mikro-orm/mikro-orm/commit/b0f97ed9408d021046a0ee50fb5dbf9d98d72f3e)), closes [#&#8203;6533](https://github.com/mikro-orm/mikro-orm/issues/6533) #### [6.4.10](https://github.com/mikro-orm/mikro-orm/compare/v6.4.9...v6.4.10) (2025-03-16) ##### Bug Fixes - **core:** fix result mapping of polymorphic embeddables which shadowed properties ([4edde4c](https://github.com/mikro-orm/mikro-orm/commit/4edde4cb8753201a85e7ac8311ef68b093144e97)), closes [#&#8203;6510](https://github.com/mikro-orm/mikro-orm/issues/6510) - **core:** improve inference of the repository type ([70cc33e](https://github.com/mikro-orm/mikro-orm/commit/70cc33e2a172910c20a938f14219c31d5a0345cf)), closes [#&#8203;6497](https://github.com/mikro-orm/mikro-orm/issues/6497) - **core:** improve TS detection logic ([#&#8203;6492](https://github.com/mikro-orm/mikro-orm/issues/6492)) ([858501d](https://github.com/mikro-orm/mikro-orm/commit/858501d94b0c2f10cb53b99f44f64a6e8d98c2f6)), closes [#&#8203;6491](https://github.com/mikro-orm/mikro-orm/issues/6491) - **core:** support nested polymorphic embeddables ([18d8251](https://github.com/mikro-orm/mikro-orm/commit/18d82519ebd494dd66e54edb88a195450a078bed)), closes [#&#8203;6487](https://github.com/mikro-orm/mikro-orm/issues/6487) - **mongo:** ensure connection when using schema generator ([4abc70e](https://github.com/mikro-orm/mikro-orm/commit/4abc70e5d3950640d274a7a3c99c47748c7f6d1b)), closes [#&#8203;6495](https://github.com/mikro-orm/mikro-orm/issues/6495) ##### Performance Improvements - **core:** fix consecutive metadata discovery taking too long because of STI ([f79b64b](https://github.com/mikro-orm/mikro-orm/commit/f79b64b604e1e88d92f6c1169b7f66e37b033238)), closes [#&#8203;6509](https://github.com/mikro-orm/mikro-orm/issues/6509) #### [6.4.9](https://github.com/mikro-orm/mikro-orm/compare/v6.4.8...v6.4.9) (2025-03-07) ##### Bug Fixes - **core:** ensure correct alias is used in complex join conditions ([328c809](https://github.com/mikro-orm/mikro-orm/commit/328c8097f690056ec188a1e954162e04fc7bd442)), closes [#&#8203;6484](https://github.com/mikro-orm/mikro-orm/issues/6484) - **core:** fix type of virtual entity `expression` callback ([a13a8a0](https://github.com/mikro-orm/mikro-orm/commit/a13a8a0c91bc0e51125d5e39e22ec038c0c56399)), closes [#&#8203;6481](https://github.com/mikro-orm/mikro-orm/issues/6481) - **core:** skip `convertToDatabaseValueSQL` for missing values ([63b028b](https://github.com/mikro-orm/mikro-orm/commit/63b028b05bfc5810f87046947cc74da097dc01e7)), closes [#&#8203;6470](https://github.com/mikro-orm/mikro-orm/issues/6470) - **core:** skip TS support detection via `require.extensions` ([#&#8203;6488](https://github.com/mikro-orm/mikro-orm/issues/6488)) ([3efdcd0](https://github.com/mikro-orm/mikro-orm/commit/3efdcd0a00d038b2eb24a668329f4b1cea46b2a2)), closes [/github.com/nodejs/node/pull/57298#issuecomment-2703430792](https://github.com//github.com/nodejs/node/pull/57298/issues/issuecomment-2703430792) - **schema:** support indexes on inlined embeddables ([6689c02](https://github.com/mikro-orm/mikro-orm/commit/6689c02bae207a7648a4fb356cd3aa4212dd0796)), closes [#&#8203;6469](https://github.com/mikro-orm/mikro-orm/issues/6469) #### [6.4.8](https://github.com/mikro-orm/mikro-orm/compare/v6.4.7...v6.4.8) (2025-03-06) ##### Bug Fixes - **core:** do not cache internal `Collection` reference to `EntityManager` ([1c07cab](https://github.com/mikro-orm/mikro-orm/commit/1c07cab0ae275db2c4a549b9da6d3d0e2ed81dda)), closes [#&#8203;6453](https://github.com/mikro-orm/mikro-orm/issues/6453) - **core:** ensure bigint types don't produce extra updates with joined strategy ([70063e0](https://github.com/mikro-orm/mikro-orm/commit/70063e00cc0fcf3e0af00c7647635f47a4f4a5b4)), closes [#&#8203;6478](https://github.com/mikro-orm/mikro-orm/issues/6478) - **core:** fix serialization of collections with composite entities via `getIdentifiers` ([4effa18](https://github.com/mikro-orm/mikro-orm/commit/4effa1879b01e2cde997725fb3cfb598359bd621)), closes [#&#8203;6479](https://github.com/mikro-orm/mikro-orm/issues/6479) - **core:** respect check constraints from child STI entities ([8cfd6e3](https://github.com/mikro-orm/mikro-orm/commit/8cfd6e3a335cdee84ce3b6f5f98ea6fde3550fd5)), closes [#&#8203;6450](https://github.com/mikro-orm/mikro-orm/issues/6450) - **core:** respect Collection property `orderBy` when dataloader is enabled ([#&#8203;6467](https://github.com/mikro-orm/mikro-orm/issues/6467)) ([6322ce8](https://github.com/mikro-orm/mikro-orm/commit/6322ce8bbec4042784722e721c516f2982581461)) - **query-builder:** apply filters to auto-joined relations ([#&#8203;6480](https://github.com/mikro-orm/mikro-orm/issues/6480)) ([6b1d7ee](https://github.com/mikro-orm/mikro-orm/commit/6b1d7ee63b9a28305e9465845bf445fe1f588d03)), closes [#&#8203;6458](https://github.com/mikro-orm/mikro-orm/issues/6458) - **query-builder:** do not inline PK nested in a `$not` query ([5931d28](https://github.com/mikro-orm/mikro-orm/commit/5931d2819b74ae9a5b996be404a884eeb78b0cbf)), closes [#&#8203;6452](https://github.com/mikro-orm/mikro-orm/issues/6452) - **query-builder:** revert recent changes to composite key sharing ([2bd973d](https://github.com/mikro-orm/mikro-orm/commit/2bd973dae0bc125cf43620524bd5b4f3fc327993)), closes [#&#8203;6359](https://github.com/mikro-orm/mikro-orm/issues/6359) ##### Features - **entity-generator:** pass through `orderBy` option to the output ([#&#8203;6466](https://github.com/mikro-orm/mikro-orm/issues/6466)) ([1142f40](https://github.com/mikro-orm/mikro-orm/commit/1142f402883c2524ca5f0fef09c3912cbd191398)) #### [6.4.7](https://github.com/mikro-orm/mikro-orm/compare/v6.4.6...v6.4.7) (2025-02-22) ##### Bug Fixes - **core:** enforce selection of discriminator column when partial loading is used ([80c1b5b](https://github.com/mikro-orm/mikro-orm/commit/80c1b5b9b5b73c8b6cf51e941d2afaeac85a2809)), closes [#&#8203;6436](https://github.com/mikro-orm/mikro-orm/issues/6436) - **core:** ensure `@Check` expression callback works without explicit type ([5aa77db](https://github.com/mikro-orm/mikro-orm/commit/5aa77db3add74959551043e1fe6f7d119e5728ac)), closes [#&#8203;6429](https://github.com/mikro-orm/mikro-orm/issues/6429) - **core:** ensure partial loading allows to fetch missing values ([ecba90f](https://github.com/mikro-orm/mikro-orm/commit/ecba90f11bc68d15039f2a8b2d4e0a3e908c085f)), closes [#&#8203;6395](https://github.com/mikro-orm/mikro-orm/issues/6395) - **core:** fix extra updates with joined strategy caused by custom types ([2e1ab9a](https://github.com/mikro-orm/mikro-orm/commit/2e1ab9a1d3c5ea57be31fc341c32bdb8e48d2e6b)), closes [#&#8203;6432](https://github.com/mikro-orm/mikro-orm/issues/6432) - **core:** fix querying by a composite property with shared columns ([#&#8203;6445](https://github.com/mikro-orm/mikro-orm/issues/6445)) ([396ee70](https://github.com/mikro-orm/mikro-orm/commit/396ee70dff86d3dff1928f8d61ac837f271ec3a3)), closes [#&#8203;6359](https://github.com/mikro-orm/mikro-orm/issues/6359) - **core:** fix support for custom types on PKs in `em.upsert` ([57a4549](https://github.com/mikro-orm/mikro-orm/commit/57a45498776814982afb489e254aad4b0711dc38)), closes [#&#8203;6434](https://github.com/mikro-orm/mikro-orm/issues/6434) - **core:** fix type error when getting a composite PK value ([2d4d2be](https://github.com/mikro-orm/mikro-orm/commit/2d4d2be1bd04cc2c040fa975d181d65a44aeca92)), closes [#&#8203;6430](https://github.com/mikro-orm/mikro-orm/issues/6430) - **core:** fix type resolution in `em.assign` with nullable properties ([4f13552](https://github.com/mikro-orm/mikro-orm/commit/4f1355263f9802e359d70cc1c266559e97fd8245)), closes [#&#8203;6426](https://github.com/mikro-orm/mikro-orm/issues/6426) - **mssql:** fix support for upsert on compound unique constraints ([#&#8203;6447](https://github.com/mikro-orm/mikro-orm/issues/6447)) ([43d1ff5](https://github.com/mikro-orm/mikro-orm/commit/43d1ff582778555b867ba05278587fea86c98b85)), closes [#&#8203;6390](https://github.com/mikro-orm/mikro-orm/issues/6390) - **schema:** respect schema from config in `clearDatabase()` ([0ab99a1](https://github.com/mikro-orm/mikro-orm/commit/0ab99a1bcf1a2e3a6d4deb0cb2ff0012c5c7db84)), closes [#&#8203;6405](https://github.com/mikro-orm/mikro-orm/issues/6405) - **sql:** quote `raw().as()` field aliases ([d9716d7](https://github.com/mikro-orm/mikro-orm/commit/d9716d7c42ec97708378d1cc99d8bb27efd417dc)) - **sql:** respect EM schema when clearing not populated 1:m collection of wildcard entities ([12223e3](https://github.com/mikro-orm/mikro-orm/commit/12223e308ccfca0c3cc87650e2748cf035351655)), closes [#&#8203;6387](https://github.com/mikro-orm/mikro-orm/issues/6387) ##### Features - **core:** add `entityName` as argument for filter `cond` callback ([#&#8203;6424](https://github.com/mikro-orm/mikro-orm/issues/6424)) ([f358dbf](https://github.com/mikro-orm/mikro-orm/commit/f358dbf939fd1728aadfe2876c7edbcc0782a010)) - **core:** improve typings for `@Entity`, `@Index` and `@Unique` decorators ([#&#8203;6416](https://github.com/mikro-orm/mikro-orm/issues/6416)) ([833a640](https://github.com/mikro-orm/mikro-orm/commit/833a6403ca393c341fca8e6207652d063fdb0677)), closes [/github.com/mikro-orm/mikro-orm/blob/a6c48fd1b436edcd2bcead74ebfec42bb65da043/packages/core/src/errors.ts#L214](https://github.com//github.com/mikro-orm/mikro-orm/blob/a6c48fd1b436edcd2bcead74ebfec42bb65da043/packages/core/src/errors.ts/issues/L214) ##### Performance Improvements - **reflection:** only consider entity files instead of evaluating the whole project ([#&#8203;6439](https://github.com/mikro-orm/mikro-orm/issues/6439)) ([6f22fa6](https://github.com/mikro-orm/mikro-orm/commit/6f22fa660d9c90fdc38c4a447b699bc6a61c391e)) #### [6.4.6](https://github.com/mikro-orm/mikro-orm/compare/v6.4.5...v6.4.6) (2025-02-12) ##### Bug Fixes - **query-builder:** fix default schema resolution when root entity has a custom schema ([#&#8203;6380](https://github.com/mikro-orm/mikro-orm/issues/6380)) ([746f43f](https://github.com/mikro-orm/mikro-orm/commit/746f43fd7ac513962c23930c9fe3ad31148a2af2)), closes [#&#8203;6373](https://github.com/mikro-orm/mikro-orm/issues/6373) - **sqlite:** ensure correct order of columns in temp table ([#&#8203;6391](https://github.com/mikro-orm/mikro-orm/issues/6391)) ([fc51bd5](https://github.com/mikro-orm/mikro-orm/commit/fc51bd523ba8338dec88571b93e56df70f0b8f40)), closes [#&#8203;6145](https://github.com/mikro-orm/mikro-orm/issues/6145) ##### Features - **seeder:** make `.each()` function receive `index: number` argument ([#&#8203;6393](https://github.com/mikro-orm/mikro-orm/issues/6393)) ([8613388](https://github.com/mikro-orm/mikro-orm/commit/86133884b2200d319a431ae04ef38acb3d306f83)) - **seeder:** pass params to `.definition()` function as argument ([#&#8203;6396](https://github.com/mikro-orm/mikro-orm/issues/6396)) ([b45db20](https://github.com/mikro-orm/mikro-orm/commit/b45db205df964dd45438468775825dea1186fce7)) - **seeder:** pass params to `.definition()` function as argument ([#&#8203;6396](https://github.com/mikro-orm/mikro-orm/issues/6396)) ([77468ee](https://github.com/mikro-orm/mikro-orm/commit/77468ee2832c81f7e76a495b8dfccaabcffa38e8)) #### [6.4.5](https://github.com/mikro-orm/mikro-orm/compare/v6.4.4...v6.4.5) (2025-01-30) ##### Bug Fixes - **core:** allow querying by embedded instance with `em.findAndCount` ([#&#8203;6370](https://github.com/mikro-orm/mikro-orm/issues/6370)) ([9e60817](https://github.com/mikro-orm/mikro-orm/commit/9e60817b41185d321b637f3161367562258e6506)), closes [#&#8203;6353](https://github.com/mikro-orm/mikro-orm/issues/6353) - **core:** ensure populating `Ref` properties do not result in `TypeError` ([7d34645](https://github.com/mikro-orm/mikro-orm/commit/7d34645805e81f2f106fd9bacf45c686b898a0f6)) - **core:** fix creating new entities with composite props that share a column ([68c79b2](https://github.com/mikro-orm/mikro-orm/commit/68c79b20781302a6aa1ba5808464797db50e43e1)), closes [#&#8203;6360](https://github.com/mikro-orm/mikro-orm/issues/6360) - **core:** fix processing of queries for composite props that share a column ([c01522d](https://github.com/mikro-orm/mikro-orm/commit/c01522dd8c72f935c2c846b3bb01bba72410bf91)), closes [#&#8203;6359](https://github.com/mikro-orm/mikro-orm/issues/6359) ##### Features - **migrations:** allow returning promise from `generateMigrationFile` ([af75d06](https://github.com/mikro-orm/mikro-orm/commit/af75d06dd4dd0788b16b8b227187bc465650164a)), closes [#&#8203;6364](https://github.com/mikro-orm/mikro-orm/issues/6364) #### [6.4.4](https://github.com/mikro-orm/mikro-orm/compare/v6.4.3...v6.4.4) (2025-01-23) ##### Bug Fixes - **core:** do not persist embeddables via `em.create()` ([c6ed010](https://github.com/mikro-orm/mikro-orm/commit/c6ed010159b108c4010480aab0c5b498e0c8861e)) - **core:** fix multi insert when some values of a not-null column with default are missing ([cd8f6e1](https://github.com/mikro-orm/mikro-orm/commit/cd8f6e12eb53d6e8f2ab416dc080838d10d29d5e)) - **core:** ignore partial loading hint on JSON column when pruning relations ([fbdea0a](https://github.com/mikro-orm/mikro-orm/commit/fbdea0aa43a03765a3b0234caf2e380590430bc3)) - **core:** reduce chance of collisions of internal embedded properties ([#&#8203;6354](https://github.com/mikro-orm/mikro-orm/issues/6354)) ([98ab6a2](https://github.com/mikro-orm/mikro-orm/commit/98ab6a28fc6c9378ab77f523d4e48c651c5ba910)), closes [#&#8203;6351](https://github.com/mikro-orm/mikro-orm/issues/6351) - **query-builder:** process custom types in join conditions ([3a6153f](https://github.com/mikro-orm/mikro-orm/commit/3a6153f06805362cef2f74c9972cbd792fa92939)), closes [#&#8203;6357](https://github.com/mikro-orm/mikro-orm/issues/6357) - **schema:** fixed handling of check constraints on MariaDB before 10.5.10 ([#&#8203;6352](https://github.com/mikro-orm/mikro-orm/issues/6352)) ([7d41e22](https://github.com/mikro-orm/mikro-orm/commit/7d41e2227780e280500104e7c2f9c8136fd6ade5)), closes [#&#8203;6350](https://github.com/mikro-orm/mikro-orm/issues/6350) ##### Features - **core:** add `ignoreUndefined` flag to `assign` helper ([#&#8203;6339](https://github.com/mikro-orm/mikro-orm/issues/6339)) ([bdcce17](https://github.com/mikro-orm/mikro-orm/commit/bdcce1791ad8a6c69274bc7b82aac77667329b92)), closes [#&#8203;6338](https://github.com/mikro-orm/mikro-orm/issues/6338) - **core:** allow raw query fragments in `assign()` helper data ([c47ac64](https://github.com/mikro-orm/mikro-orm/commit/c47ac645e8aa44f23c8fe22039bc7a4db4c4036c)), closes [#&#8203;6346](https://github.com/mikro-orm/mikro-orm/issues/6346) - **core:** support `disableIdentityMap` in `em.upsert/Many()` ([e8e9d4c](https://github.com/mikro-orm/mikro-orm/commit/e8e9d4cad8b1a22cee083c419714ec55d27c3e0f)), closes [#&#8203;6345](https://github.com/mikro-orm/mikro-orm/issues/6345) - **seeder:** make `Factory.em` protected ([#&#8203;6340](https://github.com/mikro-orm/mikro-orm/issues/6340)) ([e66d843](https://github.com/mikro-orm/mikro-orm/commit/e66d84398cdcd1fa82d72a014f87530ebb2ff34a)) #### [6.4.3](https://github.com/mikro-orm/mikro-orm/compare/v6.4.2...v6.4.3) (2025-01-08) ##### Bug Fixes - **entity-generator:** output explicit `referencedColumnNames` when sharing a column in a composite foreign key ([85db3c1](https://github.com/mikro-orm/mikro-orm/commit/85db3c1cadd13d80ebb8010c64a5d50a9024dab7)), closes [#&#8203;6323](https://github.com/mikro-orm/mikro-orm/issues/6323) - **entity-generator:** skip bidirectional relation if target metadata doesn't exist ([#&#8203;6328](https://github.com/mikro-orm/mikro-orm/issues/6328)) ([c7984fe](https://github.com/mikro-orm/mikro-orm/commit/c7984fe162b635c28fdf3b8b1b365346f4f67c46)) - **query-builder:** ignore lock mode in paginate subquery and keep it only on top level ([3b7fdba](https://github.com/mikro-orm/mikro-orm/commit/3b7fdba0ce00cc6534453ff3082995b17cb22808)) - **schema:** infer `columnTypes` when sharing a column in a composite foreign key ([6781194](https://github.com/mikro-orm/mikro-orm/commit/678119475cee860dd4684c9f4d903a3d4028b8a3)), closes [#&#8203;6323](https://github.com/mikro-orm/mikro-orm/issues/6323) - **schema:** output deferrable FKs in sqlite `create table` statement ([6bbec01](https://github.com/mikro-orm/mikro-orm/commit/6bbec011de7b26a6d3771a177970f62062f178d3)) - **schema:** support `unsigned` for `decimal` and `double` types ([d3ce313](https://github.com/mikro-orm/mikro-orm/commit/d3ce313e0494d2825dfaf6fccf26ccaf4fdc78c8)), closes [#&#8203;6318](https://github.com/mikro-orm/mikro-orm/issues/6318) ##### Features - **migrations:** allow configuring snapshot via env vars ([59f0593](https://github.com/mikro-orm/mikro-orm/commit/59f05935e498735ca33f82fdd61f10d23634f0cd)), closes [#&#8203;6327](https://github.com/mikro-orm/mikro-orm/issues/6327) - **mongo:** include MikroORM version in MongoDB handshake ([#&#8203;6326](https://github.com/mikro-orm/mikro-orm/issues/6326)) ([f501a91](https://github.com/mikro-orm/mikro-orm/commit/f501a91b85eb73aa87c4b226e51295c3598d3d17)) #### [6.4.2](https://github.com/mikro-orm/mikro-orm/compare/v6.4.1...v6.4.2) (2024-12-22) ##### Bug Fixes - **core:** correctly handle populate of `mapToPk` relations ([#&#8203;6309](https://github.com/mikro-orm/mikro-orm/issues/6309)) ([61fb8f5](https://github.com/mikro-orm/mikro-orm/commit/61fb8f59245f3ccc6e325da7cf39a39dd0fd7b24)), closes [#&#8203;6265](https://github.com/mikro-orm/mikro-orm/issues/6265) - **core:** fix cursor pagination with POJO cursor and relations ([de1ae67](https://github.com/mikro-orm/mikro-orm/commit/de1ae67a62c8f14e471d34168e8e16768188d124)), closes [#&#8203;6308](https://github.com/mikro-orm/mikro-orm/issues/6308) - **core:** prevent reinsertion of an entity referenced by a formula when it is removed from a collection ([#&#8203;6265](https://github.com/mikro-orm/mikro-orm/issues/6265)) ([8f45243](https://github.com/mikro-orm/mikro-orm/commit/8f45243741d469a462fc5f7a7f944ac8dc053775)) - **entity-generator:** support multi-line comments ([#&#8203;6290](https://github.com/mikro-orm/mikro-orm/issues/6290)) ([4fdb169](https://github.com/mikro-orm/mikro-orm/commit/4fdb1696b5527842fa2c1975a7961b478e71dfe3)), closes [#&#8203;6286](https://github.com/mikro-orm/mikro-orm/issues/6286) - **query-builder:** combine serialization hint from managed entities and QueryBuilder result ([#&#8203;6307](https://github.com/mikro-orm/mikro-orm/issues/6307)) ([7d1a0dc](https://github.com/mikro-orm/mikro-orm/commit/7d1a0dc7f69e7e63075f5e78265beb5856cd731c)) - **query-builder:** improve detection of to-many joins in `qb.getCount()` ([4e5b18b](https://github.com/mikro-orm/mikro-orm/commit/4e5b18bb713a5ae9fe939e2e300849bfa77a1ab7)), closes [#&#8203;6291](https://github.com/mikro-orm/mikro-orm/issues/6291) - **reflection:** fix source file detection after update to ts-morph v24 ([d9716a6](https://github.com/mikro-orm/mikro-orm/commit/d9716a65be0ab7f4aca369ea47c22c85352ee38d)), closes [#&#8203;6297](https://github.com/mikro-orm/mikro-orm/issues/6297) ##### Features - **core:** validate missing properties in cursor ([d175c9d](https://github.com/mikro-orm/mikro-orm/commit/d175c9d4b7b870d1af2c5d5b376c4ca8111e8004)), closes [#&#8203;6308](https://github.com/mikro-orm/mikro-orm/issues/6308) #### [6.4.1](https://github.com/mikro-orm/mikro-orm/compare/v6.4.0...v6.4.1) (2024-12-08) ##### Bug Fixes - **core:** consider nested queries on JSON properties as scalars ([920b019](https://github.com/mikro-orm/mikro-orm/commit/920b0196b3d6ead5aa240f72271de1779a572c83)), closes [#&#8203;6246](https://github.com/mikro-orm/mikro-orm/issues/6246) - **core:** fix upserting properties with custom types ([036b84d](https://github.com/mikro-orm/mikro-orm/commit/036b84d7c7d5203f691b60449b4f021b8c214977)), closes [#&#8203;6241](https://github.com/mikro-orm/mikro-orm/issues/6241) - **core:** improve handling of reference wrapper inside constructor parameters ([db7cb8a](https://github.com/mikro-orm/mikro-orm/commit/db7cb8ab350663c0e4db0640aee3dd8c24a5acfa)), closes [#&#8203;6266](https://github.com/mikro-orm/mikro-orm/issues/6266) - **core:** skip extra updates on properties with deferred constraints ([85a649b](https://github.com/mikro-orm/mikro-orm/commit/85a649b04059f83ab3f3e2de6da6134801877bb3)), closes [#&#8203;6266](https://github.com/mikro-orm/mikro-orm/issues/6266) - **core:** support upserting entities with FK as PK when the target entity has composite PK ([#&#8203;6275](https://github.com/mikro-orm/mikro-orm/issues/6275)) ([2ae9ae7](https://github.com/mikro-orm/mikro-orm/commit/2ae9ae7176aef12d834e2c6e548f31a606781f01)), closes [#&#8203;6252](https://github.com/mikro-orm/mikro-orm/issues/6252) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi4zIiwidXBkYXRlZEluVmVyIjoiNDIuNjQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYmFja2VuZCIsInJlbm92YXRlIl19-->
renovate-bot force-pushed renovate/mikro-orm-monorepo from 66b25a268e to 5625faf451 2025-09-03 06:02:37 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.1 to Update mikro-orm monorepo to v6.5.2 2025-09-03 06:02:41 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 5625faf451 to bc2eaeebb9 2025-09-14 12:11:39 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.2 to Update mikro-orm monorepo to v6.5.3 2025-09-14 12:11:42 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from bc2eaeebb9 to 73cbb7a0d7 2025-09-18 06:02:58 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.3 to Update mikro-orm monorepo to v6.5.4 2025-09-18 06:03:01 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 73cbb7a0d7 to 30ef9cec62 2025-09-22 06:03:08 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.4 to Update mikro-orm monorepo to v6.5.5 2025-09-22 06:03:10 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 30ef9cec62 to 75fe12f953 2025-09-26 06:03:03 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.5 to Update mikro-orm monorepo to v6.5.6 2025-09-26 06:03:07 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 75fe12f953 to 97f6606398 2025-10-07 06:03:05 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.6 to Update mikro-orm monorepo to v6.5.7 2025-10-07 06:03:09 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 97f6606398 to 213ccac4a7 2025-10-14 06:03:17 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.7 to Update mikro-orm monorepo to v6.5.8 2025-10-14 06:03:20 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 213ccac4a7 to c582054bc9 2025-10-24 06:02:21 +01:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.8 to Update mikro-orm monorepo to v6.5.9 2025-10-24 06:02:25 +01:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from c582054bc9 to 6f38fe6e4a 2025-11-12 05:03:14 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.5.9 to Update mikro-orm monorepo to v6.6.0 2025-11-12 05:03:21 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 6f38fe6e4a to 8b58106e4a 2025-11-26 05:01:41 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.6.0 to Update mikro-orm monorepo to v6.6.1 2025-11-26 05:01:46 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 8b58106e4a to 57eaef35cb 2025-12-08 05:02:34 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.6.1 to Update mikro-orm monorepo to v6.6.2 2025-12-08 05:02:39 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from 57eaef35cb to e66d021a52 2026-01-05 05:02:05 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.6.2 to Update mikro-orm monorepo to v6.6.3 2026-01-05 05:02:10 +00:00
renovate-bot force-pushed renovate/mikro-orm-monorepo from e66d021a52 to 745b8e61f3 2026-01-15 05:02:31 +00:00 Compare
renovate-bot changed title from Update mikro-orm monorepo to v6.6.3 to Update mikro-orm monorepo to v6.6.4 2026-01-15 05:02:39 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/mikro-orm-monorepo:renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo
git rebase main
git switch main
git merge --ff-only renovate/mikro-orm-monorepo
git switch renovate/mikro-orm-monorepo
git rebase main
git switch main
git merge --no-ff renovate/mikro-orm-monorepo
git switch main
git merge --squash renovate/mikro-orm-monorepo
git switch main
git merge --ff-only renovate/mikro-orm-monorepo
git switch main
git merge renovate/mikro-orm-monorepo
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MobiusReactor/TicTacToeV2!22
No description provided.