Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for callBackToMethodValue (0.09 sec)

  1. schema/schema.go

    		callbackTypeBeforeSave, callbackTypeAfterSave,
    		callbackTypeBeforeDelete, callbackTypeAfterDelete,
    		callbackTypeAfterFind,
    	}
    	for _, cbName := range callbackTypes {
    		if methodValue := callBackToMethodValue(modelValue, cbName); methodValue.IsValid() {
    			switch methodValue.Type().String() {
    			case "func(*gorm.DB) error": // TODO hack
    				reflect.Indirect(reflect.ValueOf(schema)).FieldByName(string(cbName)).SetBool(true)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top