Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RelationIdAttribute

Stores all join relation id attributes which will be used to build a JOIN query.

Hierarchy

  • RelationIdAttribute

Index

Constructors

constructor

Properties

Optional alias

alias: string

Alias of the joined (destination) table.

disableMixedMap

disableMixedMap: boolean = false

Indicates if relation id should NOT be loaded as id map.

mapToProperty

mapToProperty: string

Property + alias of the object where to joined data should be mapped.

Optional queryBuilderFactory

queryBuilderFactory: function

Extra condition applied to "ON" section of join.

Type declaration

Private queryExpressionMap

queryExpressionMap: QueryExpressionMap

relationName

relationName: string

Name of relation.

Accessors

joinInverseSideMetadata

junctionAlias

  • get junctionAlias(): string

junctionMetadata

mapToPropertyParentAlias

  • get mapToPropertyParentAlias(): string

mapToPropertyPropertyPath

  • get mapToPropertyPropertyPath(): string

parentAlias

  • get parentAlias(): string
  • Alias of the parent of this join. For example, if we join ("post.category", "categoryAlias") then "post" is a parent alias. This value is extracted from entityOrProperty value. This is available when join was made using "post.category" syntax.

    Returns string

relation

relationPropertyPath

  • get relationPropertyPath(): string
  • Relation property name of the parent. This is used to understand what is joined. For example, if we join ("post.category", "categoryAlias") then "category" is a relation property. This value is extracted from entityOrProperty value. This is available when join was made using "post.category" syntax.

    Returns string

Generated using TypeDoc