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

Method getComparator

packages/core/src/entity/EntityFactory.ts:402–404  ·  view source on GitHub ↗

Returns the EntityComparator instance used for diffing entities.

()

Source from the content-addressed store, hash-verified

400
401 /** Returns the EntityComparator instance used for diffing entities. */
402 getComparator(): EntityComparator {
403 return this.#comparator;
404 }
405
406 private createEntity<T extends object>(data: EntityData<T>, meta: EntityMetadata<T>, options: FactoryOptions): T {
407 const schema = this.#driver.getSchemaName(meta, options);

Callers 3

constructorMethod · 0.45
defineBasePropertiesMethod · 0.45
createNakedFromPKMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected