API 参考
    正在准备搜索索引...
    • Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage entity1 and entity2 ids. This is owner side of the relationship.

      类型参数

      • T

      参数

      返回 PropertyDecorator

    • Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage entity1 and entity2 ids. This is owner side of the relationship.

      类型参数

      • T

      参数

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

      返回 PropertyDecorator