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

Method cannotUseGlobalContext

packages/core/src/errors.ts:156–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 }
155
156 static cannotUseGlobalContext(): ValidationError {
157 return new ValidationError(
158 "Using global EntityManager instance methods for context specific actions is disallowed. If you need to work with the global instance's identity map, use `allowGlobalContext` configuration option or `fork()` instead.",
159 );
160 }
161
162 static cannotUseOperatorsInsideEmbeddables(
163 entityName: EntityName,

Callers 1

getContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected