- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for AfterSave (0.05 seconds)
-
callbacks/interfaces.go
} type AfterUpdateInterface interface { AfterUpdate(*gorm.DB) error } type BeforeSaveInterface interface { BeforeSave(*gorm.DB) error } type AfterSaveInterface interface { AfterSave(*gorm.DB) error } type BeforeDeleteInterface interface { BeforeDelete(*gorm.DB) error } type AfterDeleteInterface interface { AfterDelete(*gorm.DB) error } type AfterFindInterface interface {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Aug 27 07:03:57 GMT 2020 - 667 bytes - Click Count (0) -
schema/callbacks_test.go
if !reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) { t.Errorf("%v should be true", str) } } for _, str := range []string{"BeforeCreate", "BeforeUpdate", "AfterUpdate", "AfterSave", "BeforeDelete", "AfterDelete", "AfterFind"} { if reflect.Indirect(reflect.ValueOf(user)).FieldByName(str).Interface().(bool) { t.Errorf("%v should be false", str) } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 939 bytes - Click Count (0) -
callbacks/update.go
callMethod(db, func(value interface{}, tx *gorm.DB) (called bool) { if db.Statement.Schema.AfterUpdate { if i, ok := value.(AfterUpdateInterface); ok { called = true db.AddError(i.AfterUpdate(tx)) } } if db.Statement.Schema.AfterSave { if i, ok := value.(AfterSaveInterface); ok {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 9.6K bytes - Click Count (0)