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

Method unwrap

packages/core/src/entity/Reference.ts:195–197  ·  view source on GitHub ↗

Returns the underlying entity without checking initialization state.

()

Source from the content-addressed store, hash-verified

193
194 /** Returns the underlying entity without checking initialization state. */
195 unwrap(): T {
196 return this.entity;
197 }
198
199 /** Returns the underlying entity, throwing an error if the reference is not initialized. */
200 getEntity(): T {

Callers 15

processPropertyMethod · 0.45
processPropertyMethod · 0.45
getRefBatchLoadFnMethod · 0.45
processEntityMethod · 0.45
processParamsMethod · 0.45
expandItemMethod · 0.45
convertRoutineInboundFunction · 0.45
autoWireOneToOneMethod · 0.45
createMethod · 0.45
unwrapReferenceMethod · 0.45
unrefFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected