Skip to main content
Version: 4.5

Interface: ManyToOneOptions<T, O>#

core.ManyToOneOptions

Type parameters#

Name
T
O

Hierarchy#

Properties#

cascade#

Optional cascade: Cascade[]

Inherited from: ReferenceOptions.cascade

Defined in: packages/core/src/decorators/Property.ts:67


columnType#

Optional columnType: string

Inherited from: ReferenceOptions.columnType

Defined in: packages/core/src/decorators/Property.ts:42


comment#

Optional comment: string

Inherited from: ReferenceOptions.comment

Defined in: packages/core/src/decorators/Property.ts:62


customType#

Optional customType: Type<any, any>

Inherited from: ReferenceOptions.customType

Defined in: packages/core/src/decorators/Property.ts:41


default#

Optional default: null | string | number | boolean | string[] | number[]

Inherited from: ReferenceOptions.default

Defined in: packages/core/src/decorators/Property.ts:47


defaultRaw#

Optional defaultRaw: string

Inherited from: ReferenceOptions.defaultRaw

Defined in: packages/core/src/decorators/Property.ts:48


eager#

Optional eager: boolean

Inherited from: ReferenceOptions.eager

Defined in: packages/core/src/decorators/Property.ts:68


entity#

Optional entity: string | () => EntityName<T>

Inherited from: ReferenceOptions.entity

Defined in: packages/core/src/decorators/Property.ts:66


fieldName#

Optional fieldName: string

Inherited from: ReferenceOptions.fieldName

Defined in: packages/core/src/decorators/Property.ts:39


fieldNames#

Optional fieldNames: string[]

Inherited from: ReferenceOptions.fieldNames

Defined in: packages/core/src/decorators/Property.ts:40


formula#

Optional formula: string | (alias: string) => string

Inherited from: ReferenceOptions.formula

Defined in: packages/core/src/decorators/Property.ts:49


hidden#

Optional hidden: boolean

Inherited from: ReferenceOptions.hidden

Defined in: packages/core/src/decorators/Property.ts:53


index#

Optional index: string | boolean

Inherited from: ReferenceOptions.index

Defined in: packages/core/src/decorators/Property.ts:55


inversedBy#

Optional inversedBy: string & keyof T | (e: T) => any

Defined in: packages/core/src/decorators/ManyToOne.ts:23


joinColumn#

Optional joinColumn: string

Defined in: packages/core/src/decorators/ManyToOne.ts:27


joinColumns#

Optional joinColumns: string[]

Defined in: packages/core/src/decorators/ManyToOne.ts:28


lazy#

Optional lazy: boolean

Inherited from: ReferenceOptions.lazy

Defined in: packages/core/src/decorators/Property.ts:57


length#

Optional length: number

Inherited from: ReferenceOptions.length

Defined in: packages/core/src/decorators/Property.ts:44


mapToPk#

Optional mapToPk: boolean

Defined in: packages/core/src/decorators/ManyToOne.ts:26


name#

Optional name: string

Inherited from: ReferenceOptions.name

Defined in: packages/core/src/decorators/Property.ts:38


nullable#

Optional nullable: boolean

Inherited from: ReferenceOptions.nullable

Defined in: packages/core/src/decorators/Property.ts:50


onCreate#

Optional onCreate: (entity: O) => any

Type declaration:#

▸ (entity: O): any

Parameters:#

NameType
entityO

Returns: any

Defined in: packages/core/src/decorators/Property.ts:45

Inherited from: ReferenceOptions.onCreate

Defined in: packages/core/src/decorators/Property.ts:45


onDelete#

Optional onDelete: string

Defined in: packages/core/src/decorators/ManyToOne.ts:29


onUpdate#

Optional onUpdate: (entity: O) => any

Type declaration:#

▸ (entity: O): any

Parameters:#

NameType
entityO

Returns: any

Defined in: packages/core/src/decorators/Property.ts:46

Inherited from: ReferenceOptions.onUpdate

Defined in: packages/core/src/decorators/Property.ts:46


onUpdateIntegrity#

Optional onUpdateIntegrity: string

Defined in: packages/core/src/decorators/ManyToOne.ts:30


persist#

Optional persist: boolean

Inherited from: ReferenceOptions.persist

Defined in: packages/core/src/decorators/Property.ts:52


primary#

Optional primary: boolean

Overrides: ReferenceOptions.primary

Defined in: packages/core/src/decorators/ManyToOne.ts:25


serializedName#

Optional serializedName: string

Inherited from: ReferenceOptions.serializedName

Defined in: packages/core/src/decorators/Property.ts:61


serializedPrimaryKey#

Optional serializedPrimaryKey: boolean

Inherited from: ReferenceOptions.serializedPrimaryKey

Defined in: packages/core/src/decorators/Property.ts:59


serializer#

Optional serializer: (value: any) => any

Type declaration:#

▸ (value: any): any

Parameters:#

NameType
valueany

Returns: any

Defined in: packages/core/src/decorators/Property.ts:60

Inherited from: ReferenceOptions.serializer

Defined in: packages/core/src/decorators/Property.ts:60


strategy#

Optional strategy: LoadStrategy

Inherited from: ReferenceOptions.strategy

Defined in: packages/core/src/decorators/Property.ts:69


type#

Optional type: unknown

Inherited from: ReferenceOptions.type

Defined in: packages/core/src/decorators/Property.ts:43


unique#

Optional unique: string | boolean

Inherited from: ReferenceOptions.unique

Defined in: packages/core/src/decorators/Property.ts:56


unsigned#

Optional unsigned: boolean

Inherited from: ReferenceOptions.unsigned

Defined in: packages/core/src/decorators/Property.ts:51


version#

Optional version: boolean

Inherited from: ReferenceOptions.version

Defined in: packages/core/src/decorators/Property.ts:54


wrappedReference#

Optional wrappedReference: boolean

Defined in: packages/core/src/decorators/ManyToOne.ts:24

Last updated on by Renovate Bot