Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/relations/OneToMany"

Index

Functions

Functions

OneToMany

  • OneToMany<T>(typeFunction: function, inverseSide: string | function, options?: RelationOptions): Function
  • One-to-many relation allows to create type of relation when Entity2 can have multiple instances of Entity1. Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity2 id on its own side.

    Type parameters

    • T

    Parameters

    Returns Function

Generated using TypeDoc