API 参考
    正在准备搜索索引...
    • A many-to-one relation allows creating the type of relation where Entity1 can have a single instance of Entity2, but Entity2 can have multiple instances of Entity1. Entity1 is the owner of the relationship, and stores the id of Entity2 on its side of the relation.

      类型参数

      • T

      参数

      返回 PropertyDecorator

    • A many-to-one relation allows creating the type of relation where Entity1 can have a single instance of Entity2, but Entity2 can have multiple instances of Entity1. Entity1 is the owner of the relationship, and stores the id of Entity2 on its side of the relation.

      类型参数

      • T

      参数

      • typeFunctionOrTarget: string | ((type?: any) => ObjectType<T>)
      • 可选inverseSide: string | ((object: T) => any)
      • 可选options: RelationOptions

      返回 PropertyDecorator