What changed in MikroORM from 6 to 7
12 releases numbered after v6.6.17 up to and including v7.2.8, stable releases only. v6.6.17 and v7.2.8 are the newest stable releases of 6 and 7 we track; this page follows them as new ones ship.
162 changes across 12 releases
Added 13
- A query builder passed as a raw fragment parameter is embedded as a sub-query
- Support read-replica routing in em.execute
- Add a -q parameter to the CLI to suppress informational output
- Add Nub TypeScript loader option to the CLI
- Add getNativeClient() to access the underlying database client
- Add through option for read-only to-one relations resolved via subquery
- Add native support for row level security
- Allow map to bypass the identity map
- Allow specifying a callback for the RequestContext options
- Support await using via Symbol.asyncDispose
- Support index option on M:N properties for pivot table join columns
- Support configurable string normalization
- Inherit collation from referenced primary key on foreign key columns
Changed 6
- Propagate serialization context along the serialized path only
- The owning side of many-to-many relations avoids per-owner scans
- Inverse many-to-many children are grouped in a single pass
- upsertMany groups reloaded rows by condition values
- The --combined argument of cache:generate can optionally be a path to the cache file
- Rework cursor pagination for custom types and nullable columns
Fixed 143
- Apply the entity default orderBy in em.stream() and em.findOne()
- Handle non-JSON query values in result cache and dataloader keys
- Include regexp and raw fragment params in result cache keys
- Respect FK deleteRule when removing an entity with loaded 1:M collections
- Keep table partitioning in the schema snapshot
- Convert $re inside $elemMatch and keep $re keys in entity data
- Convert $re on renamed fields, next to other operators and under $not
- Limit inverse M:N populate per parent instead of per owner array
- Handle composite PK $in/$nin with an empty list or multiple tuples on MSSQL
- Escape and parse MySQL enum items containing quotes or commas
- Keep $or, $and and $not in the upsert conflict condition
- Order by a composite relation key in paginated queries and with an alias prefix
- Quote index names in using hints and validate using on em.count()
- Sub-query values are no longer converted with the property's custom type
- Record types are no longer treated as LazyRef
- Class instances are kept by reference when merging the config
- em.findByCursor() respects the entity default orderBy
- Many-to-many pivot columns are distinct within one single-table inheritance hierarchy
- Interval literals in generated expressions are compared by value on PostgreSQL
- PostgreSQL array column introspection keeps element type modifiers
- PostgreSQL restrict violation errors are mapped to ForeignKeyConstraintViolationException
- Combining deferMode with where on unique indexes is rejected
- Driver exceptions are converted on the QueryBuilder read path
- Valid SQL is emitted for $in and $nin on array columns
- $not nested under collection properties is handled
- SQLite fails fast when an entity declares a schema that is not attached
- SQLite keeps child rows when a migration rebuilds a table
- SQLite table introspection reads the definition of the first column
- Aliased foreign key columns are kept when they match a joined relation name
- Inherited columns in TPT child formulas resolve to the parent alias
- em.insertMany returns one primary key per row
- Report a configured TS config path that is skipped when TypeScript support is not available in the CLI
- Escape backslashes in string default values on the MySQL family of databases
- Keep the options of property-level indexes and unique constraints
- Map MSSQL date results to strings so loaded entities are not marked dirty
- Resolve circular type inference in defineEntity for non-inline filters
- Skip scalars of uninitialized references in em.refresh()
- Support same-named properties of different kinds in polymorphic embeddables
- Unwrap references when checking nested partial fields in populate
- Keep composite foreign key columns paired when introspecting MSSQL schemas
- Write MSSQL JSON values as Unicode literals
- Handle string defaults on MySQL text and blob columns
- Map generated ids of a MySQL batch insert that mixes explicit and generated primary keys
- Reject a commit of an aborted transaction in PGlite
- Match PostgreSQL index columns as whole items when introspecting their sort order
- Reject a commit that PostgreSQL answered with ROLLBACK
- Release the pooled client when its connection drops mid-transaction on PostgreSQL
- Align introspected string defaults with the doubled-quote form in schema introspection
- Treat index columns without options as default options when diffing schemas
- Avoid converting custom types twice in collection operator subqueries
- Custom types and serializedName properties are now handled correctly in em.refresh()
- STI object embeddables declared with different classes are hydrated via the root class
- Null custom type values are preserved in upsert results
- Flush ordering is corrected for relations to TPT subclasses
- ignoreRoutines and ignoreTriggers are respected in down migrations
- STI subclasses are matched when joining into an STI entity
- Conflicting STI properties are persisted via the row subtype's property
- Formula takes priority over convertToJSValueSQL in joined queries
- Formulas of TPT descendants are selected in polymorphic loads
- Batch updates now check the version when updating entities
- defineEntity no longer infers properties from index where and key options
- upsertMany matches reloaded rows correctly when inputs use different unique keys
- Glob characters in the project path are now supported
- Upserting rows with a null unique key no longer touches unrelated rows
- MongoDB upsert inserts the document when no unique value is provided
- SQLite schema create and update respect createForeignKeyConstraints set to false
- Detect changes to decimal strings beyond double precision in core change detection
- Skip TPT child tables when reseeding identities in clear() on MSSQL
- Introspect primary keys on Oracle so the schema diff can restore and change them
- Return non-PK autoincrement and generated columns after inserts on Oracle
- Avoid restoring stale inbound foreign keys when repartitioning a table on PostgreSQL
- Drop unique index expressions via drop index instead of drop constraint on PostgreSQL
- Leave list and range partitions not declared in metadata unmanaged on PostgreSQL
- Normalize double precision casts and between in check constraint diffs on PostgreSQL
- Respect identity options when diffing and rendering columns on PostgreSQL
- Declare the primary key once when replacing it with a new autoincrement column in SQL
- Rebuild the table when the primary key is added or changed on SQLite
- Only convert regexps that LIKE can express in SQL queries
- Only skip auto-generated enum checks when diffing check constraints in SQL
- Restore a missing primary key in the schema diff in SQL
- Allow falsy values in concurrency checks
- Compare FK column for primary key conditions on polymorphic relations
- Do not mutate the where condition and data passed to the EntityManager
- Handle primary key values and objects in polymorphic and relation conditions
- Hydrate partial upsert results without mismatching entities
- Keep entity identity for relations using targetKey
- Keep the input order in em.upsertMany() when a split batch has duplicate rows
- Make compiled function keys independent of module evaluation order
- Map upsertMany results to the corresponding SQL inputs
- Merge columns supplied only by some rows in em.upsertMany()
- Preserve concurrency values in batch lock checks
- Preserve entity schema when restoring cached results
- Preserve existing groups when lifting relation filters
- Resolve repositories in non-transactional callbacks
- Respect custom fieldNames in polymorphic relations
- Respect locally disabled transactions during flush
- Throw on unsupported polymorphic relation conditions in MongoDB
- Handle OUTPUT results on tables with triggers in MSSQL
- Preserve columns from heterogeneous upsert inputs in MSSQL
- Restrict TPT identity inserts to the owning table in MSSQL
- Escape the remaining property names in generated code
- Keep populated relations clean after a result cache hit
- Map legacy ntext and image column types in MSSQL
- Do not emit returning clause inside the update sub-query
- Preserve filtered many-to-many references
- Respect property returning hints on inserts
- Select inline embeddable columns once when populating via joins
- Surface the real error when a TypeScript loader fails to load in the CLI
- Decompose nested cursor groups lexicographically
- Follow the platform's own null ordering in cursor pagination
- Handle orderBy directions carrying a nulls qualifier
- Preserve nested populate filters across loading strategies
- Treat @Formula properties as nullable in cursor pagination
- Skip @oxc-node/core helper frames when resolving entity path
- Forward pool.min to the pg pool in PostgreSQL
- TPT concurrency check is applied only to the table that declares it
- TPT version property is applied only to the table that declares it
- Entity property names are escaped in generated hydration and comparison code
- The serializer callback value is inferred from the relation kind in defineEntity
- User-class lookups are resolved by class reference instead of class name
- Polymorphic relations are supported inside embeddables
- Relations targeting a TPT sub-class join the TPT parent tables
- Relation filters are kept within their own join branch
- An endless loop is prevented when entity filters form a relation cycle
- Upsert is supported for TPT entities
- Stop double-wrapping orderBy in the M:N dataloader batch load
- Allow creating an STI entity without requiring the discriminator value
- Evict referrers holding a removed entity in their primary key
- Infer the primary key from a plain class base in defineEntity
- Respect an explicit join alias in JSON property conditions
- Strip array-typed casts cleanly when recovering check constraints in PostgreSQL
- Keep row-value tuples in $in when used on a raw() key
- Skip the trigger diff when only one side uses expression
- Accept plain arrays for enum array properties in EntityData
- Derive FK field names from targetKey instead of composite primary keys
- Don't overwrite existing rows with onCreate generated values in upsert
- Keep $or conditions intact when populating to-many relations
- Keep $or conditions intact when populating to-one relations
- Respect connectionType option in em.countBy()
- Skip enum check constraints for json/jsonb columns
- Don't mutate base class metadata in TC39 decorators
- Keep filter $or conditions intact when they span joined to-one relations
- Convert custom type values in kysely where clauses
Original release notes, newest first
The list above is our reading of these notes; the originals from MikroORM are here, one fold per release.
v7.2.8
7.2.8 (2026-11-06)
Bug Fixes
- core: apply the entity default
orderByinem.stream()andem.findOne()(#8612) (840bc49), closes #7133 #8503 - core: handle non-JSON query values in result cache and dataloader keys (#8598) (def0462)
- core: include regexp and raw fragment params in result cache keys (#8597) (c4d5e78)
- core: respect FK
deleteRulewhen removing an entity with loaded 1:M collections (#8608) (9dff7c8), closes #8606 - migrations: keep table partitioning in the schema snapshot (#8601) (03f85d8), closes #7816
- mongo: convert
$reinside$elemMatchand keep$rekeys in entity data (#8611) (47ca87b), closes #8599 - mongo: convert
$reon renamed fields, next to other operators and under$not(#8599) (885bed8) - mongo: limit inverse M:N populate per parent instead of per owner array (#8618) (79e817a)
- mssql: handle composite PK
$in/$ninwith an empty list or multiple tuples (#8609) (badc189) - mysql: escape and parse enum items containing quotes or commas (#8614) (cdbc0cb), closes #8554
- sql: keep
$or,$andand$notin the upsert conflict condition (#8602) (19d05e4), closes #8600 - sql: order by a composite relation key in paginated queries and with an alias prefix (#8610) (4b837e4)
- sql: quote index names in
usinghints and validateusingonem.count()(#8613) (35fe690)
Performance Improvements
v7.2.7
7.2.7 (2026-11-04)
Bug Fixes
- core: don't convert a sub-query value with the property's custom type (#8574) (6843a82), closes #8572
- core: don't treat record types as
LazyRef(#8564) (0aeceac) - core: keep class instances by reference when merging the config (#8496) (d11862d), closes #8495
- core: respect the entity default
orderByinem.findByCursor()(#8503) (8d789d8), closes #7133 - core: use distinct pivot columns for M:N within one STI hierarchy (#8592) (6b5a605)
- postgres: compare interval literals in generated expressions by value (#8585) (e19482b), closes #8482 #8481
- postgres: keep element type modifiers when introspecting array columns (#8498) (08a55c7), closes #8497
- postgres: map restrict violation errors to
ForeignKeyConstraintViolationException(#8558) (4d9178f) - schema: reject combining
deferModewithwhereon unique indexes (#8514) (1bc4d12), closes #8512 - sql: convert driver exceptions on the QueryBuilder read path (#8584) (fa08c33), closes #8577
- sql: emit valid SQL for
$in/$ninon array columns (#8502) (2ab63ff), closes #8454 - sql: handle
$notnested under collection properties (#8471) (fee6fc5), closes #8468 - sqlite: fail fast when an entity declares a schema that is not attached (#8583) (1cbfa26)
- sqlite: keep child rows when a migration rebuilds a table (#8510) (0a3aa8a), closes #6300 #6358
- sqlite: read the definition of the first column when introspecting a table (#8518) (b0f843e)
- sql: keep aliased FK columns when they match a joined relation name (#8573) (0175b57), closes #8571
- sql: resolve inherited columns in TPT child formulas to the parent alias (#8506) (e02bb16), closes #8492
- sql: return one primary key per row from em.insertMany (#8582) (0d3333a), closes #8575
Features
- core: embed a query builder passed as a raw fragment param as a sub-query (#8590) (64763fd), closes #8570
Performance Improvements
v7.2.6
7.2.6 (2026-10-31)
Bug Fixes
- cli: report a configured TS config path skipped without TS support (#8537) (c9951e2), closes #8531
- core: escape backslashes in string default values on the MySQL family (#8554) (a69516e), closes #8553 #8553
- core: keep the options of property-level indexes and uniques (#8491) (c343f42), closes #8488
- core: map MSSQL date results to strings so loaded entities are not dirty (d16b6ab), closes #8539
- core: resolve circular type inference in defineEntity for non-inline filters (#8479) (f4e9f54), closes #7441 #8478
- core: skip scalars of uninitialized references in
em.refresh()(#8444) (f231794), closes #8413 #8442 - core: support same-named properties of different kinds in polymorphic embeddables (#8440) (72ff876), closes #8438
- core: unwrap references when checking nested partial fields in populate (#8549) (3237c58), closes #8548
- mssql: keep composite foreign key columns paired when introspecting (#8449) (690e734)
- mssql: write JSON values as Unicode literals (#8542) (0316a53), closes #8541
- mysql: handle string defaults on text and blob columns (#8485) (4df522c)
- mysql: map generated ids of a batch insert that mixes explicit and generated primary keys (#8475) (85652ae)
- pglite: reject a commit of an aborted transaction (#8552) (c7b0de4), closes #8499 #8550
- postgres: match index columns as whole items when introspecting their sort order (#8490) (2bff5a0), closes #8489
- postgresql: reject a commit PostgreSQL answered with ROLLBACK (#8499) (743fafd), closes #8476
- postgresql: release pooled client when its connection drops mid-transaction (#8448) (ada68f8), closes kysely-org/kysely#1990 #8069 #8447
- schema: align introspected string defaults with the doubled-quote form (#8553) (70946fb), closes #8517
- schema: treat index columns without options as default options when diffing (#8450) (d5d9ef8)
- sql: avoid converting custom types twice in collection operator subqueries (#8470) (85154fb), closes #8467
- sql: refuse to commit when rolling back to a savepoint failed (#8462) (1610b60), closes #8458
- sql: reject forbidden sequences in query comments (#8536) (63c21b0)
- sql: select a formula once when a column needs SQL conversion (#8494) (3887c22), closes #8492 #8493
- sql: select the right column in joined loading when a property is named like another column (#8527) (c3563d7), closes #8526 #8292
- sql: use the persisted JSON keys for indexes on object embeddable properties (#8487) (556bb2f), closes #8486
Performance Improvements
v7.2.5
7.2.5 (2026-10-09)
Bug Fixes
- core: fix custom types and
serializedNameproperties inem.refresh()(#8413) (7463cb2), closes #8410 - core: hydrate STI object embeddables declared with different classes via the root (#8418) (863195c), closes #8417
- core: keep null custom type values in upsert results (#8428) (1a7a9c0), closes #8429 #8427
- core: order flush around relations to TPT subclasses (#8422) (3fd72ce)
- schema: respect
ignoreRoutinesandignoreTriggersin down migrations (#8416) (c28a2ec) - sql: match STI subclasses when joining into an STI entity (#8425) (74a0ba0), closes #8424
- sql: persist conflicting STI properties via the row subtype's property (#8423) (234a84e)
- sql: prioritize formula over convertToJSValueSQL in joined queries (#8415) (404f04c), closes #8414
- sql: select formulas of TPT descendants in polymorphic loads (#8419) (c65163b)
v7.2.4
7.2.4 (2026-10-06)
Bug Fixes
- core: check the version in batch updates (#8381) (5156bc4), closes #8380
- core: don't infer
defineEntityproperties from indexwhereand key options (#8395) (dca7734), closes #8394 - core: match reloaded rows in
upsertManywhen inputs use different unique keys (#8396) (20c571d) - core: support glob characters in the project path (#8390) (f2c02f0), closes #1073
- core: upsert rows with a null unique key without touching unrelated rows (#8397) (bb4aa99), closes #8393
- mongo: insert on upsert without a unique value (#8398) (1459d92)
- sqlite: respect
createForeignKeyConstraints: falsein schema create and update (#8383) (656fac7), closes #8382
Performance Improvements
v7.2.3
7.2.3 (2026-09-30)
Bug Fixes
- core: detect changes to decimal strings beyond double precision (#8368) (6ba4d2b), closes high-precision
- mssql: skip TPT child tables when reseeding identities in
clear()(#8358) (7a3614e) - oracle: introspect primary keys so the schema diff can restore and change them (#8357) (1a5c4f0)
- oracle: return non-PK autoincrement and generated columns after inserts (#8359) (1662688)
- postgres: don't restore stale inbound FKs when repartitioning a table (#8371) (5c15854), closes #8369
- postgres: drop unique index expressions via
drop indexinstead ofdrop constraint(#8365) (d798236), closes #8363 - postgres: leave list/range partitions not declared in metadata unmanaged (#8370) (54d855b), closes #8362
- postgres: normalize double precision casts and
betweenin check constraint diffs (#8366) (38cb8fc), closes #8361 - postgres: respect identity options when diffing and rendering columns (#8351) (77ad8e3), closes #8350
- sql: declare the primary key once when replacing it with a new autoincrement column (#8354) (5c9dfab)
- sqlite: rebuild the table when the primary key is added or changed (#8356) (052b83b)
- sql: only convert regexps that LIKE can express (#8367) (8a6d649)
- sql: only skip auto-generated enum checks when diffing check constraints (#8375) (ceeb1bc), closes #8374
- sql: restore a missing primary key in the schema diff (#8355) (a0e4c75)
v7.2.2
7.2.2 (2026-09-28)
Bug Fixes
- core: allow falsy values in concurrency checks (#8318) (8f483a6)
- core: compare FK column for primary key conditions on polymorphic relations (#8328) (7ead234), closes #8326
- core: do not mutate the where condition and data passed to the EntityManager (#8291) (6b42e5b), closes #8290
- core: handle primary key values and objects in polymorphic and relation conditions (#8329) (cc54e42), closes #8328
- core: hydrate partial upsert results without mismatching entities (#8294) (62632c2)
- core: keep entity identity for relations using
targetKey(#8323) (10c73e3), closes #8322 - core: keep the input order in
em.upsertMany()when a split batch has duplicate rows (#8310) (3625eab) - core: make compiled function keys independent of module evaluation order (#8339) (4e52beb), closes #8335
- core: map upsertMany results to the corresponding SQL inputs (#8305) (bb0a814)
- core: merge columns supplied only by some rows in
em.upsertMany()(#8298) (156e5ba) - core: preserve concurrency values in batch lock checks (#8317) (4cd89c6)
- core: preserve entity schema when restoring cached results (#8303) (4be2efc)
- core: preserve existing groups when lifting relation filters (#8304) (22dc99a)
- core: resolve repositories in non-transactional callbacks (#8316) (287978f)
- core: respect custom
fieldNamesin polymorphic relations (#8324) (dee0655) - core: respect locally disabled transactions during flush (#8306) (8185e4f)
- mongodb: throw on unsupported polymorphic relation conditions (#8326) (3192a2a)
- mssql: handle OUTPUT results on tables with triggers (#8295) (22a1b66)
- mssql: preserve columns from heterogeneous upsert inputs (#8296) (ed463e5)
- mssql: restrict TPT identity inserts to the owning table (#8297) (b07d131)
- sql: apply target filters when populating polymorphic relations (#8330) (3338cab)
- sql: do not convert custom types twice in
em.countBy()(#8342) (f2f19f9), closes #8341 - sql: do not treat persisted properties as virtual in paginated orderBy (#8309) (6e765dd), closes #8308
- sql: handle STI subtypes with conflicting property columns and types (#8340) (cbf93e0)
- sql: keep halfvec and sparsevec dimensions during postgres introspection (#8315) (59d3633), closes #5739
- sql: keep rows when ordering by polymorphic relation targets (#8334) (b609860)
- sql: resolve embedded formulas in partial field selections (#8301) (3fa975a)
- sql: resolve inline embeddable columns that shadow the property name (#8293) (7042e34), closes #8292
- sql: respect
distinct()anddistinctOn()inqb.getCount()(#8312) (00da4bd), closes #8311 - sql: respect property returning hints on updates and upserts (#8299) (4cb1ce3)
Performance Improvements
v7.2.1
7.2.1 (2026-09-19)
Bug Fixes
- core: escape the remaining property names in generated code (#8289) (e15eb04), closes #8221
- core: keep populated relations clean after a result cache hit (#8269) (86fd18f), closes #8268
- mssql: map legacy
ntextandimagecolumn types (#8288) (e46eddf), closes #8287 - sql: do not emit returning clause inside the update sub-query (#8283) (60b556a), closes #8282
- sql: preserve filtered many-to-many references (#8273) (c7a9f49)
- sql: respect property returning hints on inserts (#8277) (231ac16)
- sql: select inline embeddable columns once when populating via joins (#8272) (0ec88a2), closes #8271
Features
v7.2.0
7.2.0 (2026-09-07)
https://mikro-orm.io/blog/mikro-orm-7-2-released
Bug Fixes
- cli: surface the real error when a TypeScript loader fails to load (#8245) (28bdfd2)
- core: decompose nested cursor groups lexicographically (4f0f696)
- core: follow the platform's own null ordering in cursor pagination (7d1b174)
- core: handle
orderBydirections carrying a nulls qualifier (#8247) (8f4ae39) - core: preserve nested populate filters across loading strategies (#8243) (5b5fd36)
- core: treat
@Formulaproperties as nullable in cursor pagination (#8249) (f2aa86c) - decorators: skip
@oxc-node/corehelper frames when resolving entity path (#8246) (11f79e7) - postgres: forward
pool.minto thepgpool (#8237) (188b064), closes #8234
Features
- cli: add a "-q" param, to suppress informational output (#7886) (1450d3f)
- cli: add Nub TypeScript loader option (#8253) (7196a72)
- cli: the "--combined" argument of cache:generate can optionally be a path to the cache file (#7963) (6dbe55d)
- core: add
getNativeClient()to access the underlying database client (#8148) (27634ad), closes #8146 - core: add
throughoption for read-only to-one relations resolved via subquery (#8239) (5e621e0), closes #8238 - core: add native support for row level security (#7984) (8336552), closes #6137 #6413 #6493 #6493
- core: allow map to bypass identity map (#8199) (4d6a564)
- core: allow specifying a callback for the RequestContext options (#7925) (74ea240)
- core: rework cursor pagination for custom types and nullable columns (#8103) (35a1455), closes #8097
- core: support
await usingviaSymbol.asyncDispose(#8159) (e1cbd5d), closes #8158 - core: support
indexoption on M:N properties for pivot table join columns (#8160) (aa177ed), closes #8156 - core: support configurable string normalization (#8169) (96fdbb4), closes #8165
- core: support named parameters in
em.execute()(#8173) (17788fc), closes #8093 - migrations: allow opting out of snapshot updates on migrate (#8039) (c1d8561)
- mongo: add
$allquery operator support (#7931) (a8fb833) - sql-js: add sql.js driver for in-memory SQLite in WebAssembly (#7783) (c168a0f)
- sql: support the
$alloperator on collection properties (#8248) (c987f8a), closes #7931
Performance Improvements
v7.1.15
7.1.15 (2026-09-03)
Bug Fixes
- core: apply TPT concurrency check only to the table that declares it (#8228) (9d47084), closes #8227 #8226 #8226
- core: apply TPT version property only to the table that declares it (#8227) (8ee0365), closes #8226
- core: escape entity property names in generated hydration/comparison code (#8221) (b01c17d)
- core: infer
serializercallback value from relation kind indefineEntity(#8215) (9631464), closes #8214 - core: resolve user-class lookups by class reference instead of class name (#8209) (2431265), closes #8208
- core: support polymorphic relations inside embeddables (#8219) (69ed8f8), closes #8218 #8217
- sql: join TPT parent tables for relations targeting a sub-class (#8233) (a7e1521), closes #8231
- sql: keep relation filters within their own join branch (#8212) (d5feeff), closes #8210
- sql: prevent endless loop when entity filters form a relation cycle (#8213) (f30ead9), closes #8211
- sql: support upsert for TPT entities (#8229) (eafda32), closes #8226 #8226
v7.1.14
7.1.14 (2026-08-26)
Bug Fixes
- core: don't double-wrap
orderByin M:N dataloader batch load (#8194) (20aa5a8), closes #8193 - core: don't require the discriminator value when creating an STI entity (#8201) (2b0ca9b), closes #7677 #8200
- core: evict referrers holding a removed entity in their primary key (#8205) (16d80a9), closes #8203
- core: infer primary key from plain class base in
defineEntity(#8207) (7762f42) - core: respect explicit join alias in JSON property conditions (#8195) (16a147c), closes #8192
- postgres: strip array-typed casts cleanly when recovering check constraints (#8198) (2b3d9c3), closes #8197
- sql: keep row-value tuples in
$inon araw()key (#8202) (7c2e382) - sql: skip trigger diff when only one side uses
expression(#8191) (e486d39), closes #8190
v7.1.13
7.1.13 (2026-08-20)
Bug Fixes
- core: accept plain arrays for enum array properties in EntityData (#8167) (3812a88), closes #8166
- core: derive FK field names from
targetKeyinstead of composite PKs (#8172) (92a826b) - core: don't overwrite existing rows with onCreate generated values in upsert (#8186) (4052f58), closes #7399
- core: keep
$orconditions intact when populating to-many relations (#8181) (026bd8b), closes #8176 #8180 - core: keep
$orconditions intact when populating to-one relations (#8176) (3776fe5), closes #1882 #6658 #8175 - core: respect
connectionTypeoption inem.countBy()(#8188) (9e8e3bd), closes #8187 - core: skip enum check constraints for
json/jsonbcolumns (#8184) (018e522), closes #8183 - decorators: don't mutate base class metadata in TC39 decorators (#8177) (b4e72bd), closes #8178
- query-builder: keep filter
$orintact when it spans joined to-one relations (#8182) (3baa862), closes #8176 #8176 #8179 - sql: convert custom type values in kysely where clauses (#8189) (f81cef2)