github.com/go-pg/pg/v10/orm.Relation.Type (field)
21 uses
github.com/go-pg/pg/v10/orm (current package)
join.go#L26: switch j.Rel.Type {
join.go#L155: switch j.Parent.Rel.Type {
model_table_struct.go#L147: switch j.Rel.Type {
model_table_struct.go#L189: switch j.Rel.Type {
query.go#L427: switch join.Rel.Type {
query.go#L986: switch j.Rel.Type {
query.go#L1006: if j.Rel.Type == HasOneRelation || j.Rel.Type == BelongsToRelation {
relation.go#L18: Type int
table.go#L641: Type: HasOneRelation,
table.go#L675: Type: HasOneRelation,
table.go#L702: Type: BelongsToRelation,
table.go#L736: Type: BelongsToRelation,
table.go#L771: Type: HasManyRelation,
table.go#L818: Type: HasManyRelation,
table.go#L936: Type: Many2ManyRelation,
table.go#L1049: Type: Many2ManyRelation,
table.go#L1116: Type: HasManyRelation,
table.go#L1316: Type: HasOneRelation,
table.go#L1341: Type: BelongsToRelation,
table_create.go#L195: if rel.Type != HasOneRelation {