MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / setFlushMode

Method setFlushMode

packages/core/src/EntityManager.ts:468–470  ·  view source on GitHub ↗

Sets the flush mode for this EntityManager. Pass `undefined` to reset to the global default.

(flushMode?: FlushMode | `${FlushMode}`)

Source from the content-addressed store, hash-verified

466
467 /** Sets the flush mode for this EntityManager. Pass `undefined` to reset to the global default. */
468 setFlushMode(flushMode?: FlushMode | `${FlushMode}`): void {
469 this.getContext(false).#flushMode = flushMode as FlushMode;
470 }
471
472 protected async processWhere<
473 Entity extends object,

Callers 3

forkMethod · 0.45

Calls 1

getContextMethod · 0.95

Tested by

no test coverage detected