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

Method constructor

packages/seeder/src/SeedManager.ts:20–26  ·  view source on GitHub ↗
(em: EntityManager)

Source from the content-addressed store, hash-verified

18 readonly #em: EntityManager;
19
20 constructor(em: EntityManager) {
21 this.#em = em;
22 this.#config = this.#em.config;
23 this.#options = this.#config.get('seeder');
24 this.#em = this.#em.fork();
25 this.#config.set('persistOnCreate', true);
26 }
27
28 private async init(): Promise<void> {
29 if (this.#initialized) {

Callers

nothing calls this directly

Calls 3

forkMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected