API 参考
    正在准备搜索索引...
    • One-to-one relation allows the creation of a direct relation between two entities. Entity1 has only one Entity2. Entity1 is the owner of the relationship, and stores Entity2 id on its own side.

      类型参数

      • T

      参数

      返回 PropertyDecorator

    • One-to-one relation allows the creation of a direct relation between two entities. Entity1 has only one Entity2. Entity1 is the owner of the relationship, and stores Entity2 id on its own side.

      类型参数

      • T

      参数

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

      返回 PropertyDecorator