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

Function clearIdentityMap

packages/core/src/utils/AbstractSchemaGenerator.ts:70–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 protected clearIdentityMap(): void {
71 /* v8 ignore next */
72 if (!this.em) {
73 return;
74 }
75
76 const allowGlobalContext = this.config.get('allowGlobalContext');
77 this.config.set('allowGlobalContext', true);
78 this.em.clear();
79 this.config.set('allowGlobalContext', allowGlobalContext);
80 }
81
82 async getCreateSchemaSQL(options?: CreateSchemaOptions): Promise<string> {
83 this.notImplemented();

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
setMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected