Function: manyToMany()

manyToMany<TTarget, TOwner>(entity, options?): ManyToManyProperty<TTarget, TOwner>

Type Parameters

TTarget extends object

TOwner

Parameters

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

options?: ManyToManyOptions<TOwner, TTarget>

Returns

ManyToManyProperty<TTarget, TOwner>

Defined in

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