diff --git a/callback_query.go b/callback_query.go new file mode 100644 index 00000000..25cd97b3 --- /dev/null +++ b/callback_query.go @@ -0,0 +1,13 @@ +package gorm + +func Query(scope *Scope) { +} + +func AfterQuery(scope *Scope) { + scope.CallMethod("AfterFind") +} + +func init() { + DefaultCallback.Query().Register("query", Query) + DefaultCallback.Query().Register("after_query", AfterQuery) +}