Preload first before run after find

This commit is contained in:
Jinzhu 2016-02-14 21:47:13 +08:00
parent 77928d8373
commit aa45da1542
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}