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

Method checkInitialized

packages/core/src/entity/Collection.ts:509–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507 }
508
509 private checkInitialized(): void {
510 if (!this.isInitialized()) {
511 throw new Error(
512 `Collection<${this.property.type}> of entity ${helper(this.owner).__meta.name}[${helper(this.owner).getSerializedPrimaryKey()}] not initialized`,
513 );
514 }
515 }
516
517 /**
518 * re-orders items after searching with `$in` operator

Callers 11

getItemsMethod · 0.95
removeMethod · 0.95
containsMethod · 0.95
countMethod · 0.95
isEmptyMethod · 0.95
sliceMethod · 0.95
existsMethod · 0.95
findMethod · 0.95
filterMethod · 0.95
mapMethod · 0.95
reduceMethod · 0.95

Calls 3

isInitializedMethod · 0.95
helperFunction · 0.85

Tested by

no test coverage detected