Function: oneToMany()

oneToMany<TTarget, TOwner>(entity, options): OneToManyProperty<TTarget, TOwner>

Type Parameters

TTarget extends object

TOwner

Parameters

entity: string | () => EntityName<TTarget>

options: OneToManyOptions<TOwner, TTarget>

Returns

OneToManyProperty<TTarget, TOwner>

Defined in

packages/mikro-orm/src/entity-schema.ts:404