Skip to main content
Version: Next

EntitySchema <Entity, Base>

Index

Constructors

constructor

Properties

staticREGISTRY

REGISTRY: Map<Partial<any>, EntitySchema<any, never>> = ...

When schema links the entity class via class option, this registry allows the lookup from opposite side, so we can use the class in entities option just like the EntitySchema instance.

Accessors

meta

name

Methods

addEmbedded

addEnum

  • Parameters

    Returns void

addIndex

addManyToMany

addManyToOne

addOneToMany

addOneToOne

addPrimaryKey

addProperty

addSerializedPrimaryKey

addUnique

addVersion

setClass

setCustomRepository

  • setCustomRepository(repository: () => Constructor): void

setExtends

  • Parameters

    Returns void

staticfromMetadata