Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/relations/ManyToOne"

Index

Functions

Functions

ManyToOne

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

    Type parameters

    • T

    Parameters

    Returns Function

  • Many-to-one relation allows to create type of relation when Entity1 can have single instance of Entity2, but Entity2 can have a multiple instances of Entity1. Entity1 is an owner of the relationship, and storages Entity2 id on its own side.

    Type parameters

    • T

    Parameters

    • typeFunction: function
    • Optional inverseSide: string | function
    • Optional options: RelationOptions

    Returns Function

Generated using TypeDoc