Skip to main content
Version: 5.3

IWrappedEntity <T, PK, P>

Implemented by

Index

Methods

assign

getSchema

  • getSchema(): undefined | string
  • Returns undefined | string

init

  • Type parameters

    • P: string = never

    Parameters

    Returns Promise<Loaded<T, P>>

isInitialized

  • isInitialized(): boolean
  • Returns boolean

isTouched

  • isTouched(): boolean
  • Returns boolean

populated

  • populated(populated?: boolean): void
  • Parameters

    • optionalpopulated: boolean

    Returns void

setSchema

  • setSchema(schema?: string): void
  • Parameters

    • optionalschema: string

    Returns void

toJSON

  • Parameters

    • rest...args: any[]

    Returns EntityDTO<T>

toObject

  • toObject(ignoreFields?: string[]): EntityDTO<T>
  • Parameters

    • optionalignoreFields: string[]

    Returns EntityDTO<T>

toPOJO

toReference