View definition

(QuerySeter).RelatedSel

Defined in github.com/astaxie/beego/orm/types.go

Description

set relation model to query together. it will query relation models and assign to parent model. for example:

// will load all related fields use left join .
qs.RelatedSel().One(&user)
// will  load related field only profile
qs.RelatedSel("profile").One(&user)
user.Profile.Age = 32

RelatedSel is referenced in 19 repositories

github.com/astaxie/beego github.com/beego/wetalk github.com/tolower/web

...