mirror of https://github.com/go-gorm/gorm.git
Preload first before run after find
This commit is contained in:
parent
77928d8373
commit
aa45da1542
|
@ -115,6 +115,6 @@ func AfterQuery(scope *Scope) {
|
|||
|
||||
func init() {
|
||||
DefaultCallback.Query().Register("gorm:query", Query)
|
||||
DefaultCallback.Query().Register("gorm:after_query", AfterQuery)
|
||||
DefaultCallback.Query().Register("gorm:preload", Preload)
|
||||
DefaultCallback.Query().Register("gorm:after_query", AfterQuery)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue