Skip to main content
Version: 6.3

abstractBaseEntity

Index

Constructors

constructor

Methods

assign

  • assign<Entity, Naked, Convert, Data>(data, options): MergeSelected<Entity, Naked, keyof Data & string>

getSchema

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

init

  • init<Entity, Hint, Fields, Excludes>(options): Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
  • Type parameters

    Parameters

    Returns Promise<null | Loaded<Entity, Hint, Fields, Excludes>>

isInitialized

  • isInitialized(): boolean
  • Returns boolean

isTouched

  • isTouched(): boolean
  • Returns boolean

populate

  • populate<Entity, Hint>(populate, options): Promise<Loaded<Entity, Hint>>

populated

  • populated(populated): void
  • Parameters

    • populated: boolean = true

    Returns void

serialize

setSchema

  • setSchema(schema): void
  • Parameters

    • optionalschema: string

    Returns void

toObject

  • toObject<Entity>(): EntityDTO<Entity>
  • toObject<Entity>(ignoreFields): EntityDTO<Entity>
  • toObject<Entity, Ignored>(ignoreFields): Omit<EntityDTO<Entity>, Ignored>

toPOJO

toReference