View definition

(*CallbackProcessor).Replace

Defined in github.com/jinzhu/gorm/callback.go

Description

Replace a registered callback with new callback

    db.Callback().Create().Replace("gorm:update_time_stamp_when_create", func(*Scope) {
		   scope.SetColumn("Created", now)
		   scope.SetColumn("Updated", now)
    })

Replace is referenced in 2 repositories

github.com/jinzhu/gorm github.com/qor/publish