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

Method getPlatform

packages/core/src/EntityManager.ts:172–174  ·  view source on GitHub ↗

* Gets the platform instance. Just like the driver, platform is singleton, one for a MikroORM instance.

()

Source from the content-addressed store, hash-verified

170 * Gets the platform instance. Just like the driver, platform is singleton, one for a MikroORM instance.
171 */
172 getPlatform(): ReturnType<Driver['getPlatform']> {
173 return this.driver.getPlatform() as ReturnType<Driver['getPlatform']>;
174 }
175
176 /**
177 * Gets repository for given entity. You can pass either string name or entity class reference.

Callers 2

upsertMethod · 0.95
upsertManyMethod · 0.95

Calls 1

getPlatformMethod · 0.65

Tested by

no test coverage detected