EnsureRequestContext
Callable
Type parameters
- T
Parameters
optionalgetContext: MikroORM<IDatabaseDriver<Connection>, EntityManager<IDatabaseDriver<Connection>>> | Promise<MikroORM<IDatabaseDriver<Connection>, EntityManager<IDatabaseDriver<Connection>>>> | (type: T) => EntityManager<IDatabaseDriver<Connection>> | EntityRepository<any> | MikroORM<IDatabaseDriver<Connection>, EntityManager<IDatabaseDriver<Connection>>> | Promise<MikroORM<IDatabaseDriver<Connection>, EntityManager<IDatabaseDriver<Connection>>>> | { getEntityManager: any }
Returns MethodDecorator