Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Heimes (0.15 sec)

  1. tests/hooks_test.go

    		t.Errorf("should find product, but got error %v", err)
    	}
    
    	if productWithItem.Item.AfterFindCallTimes != 0 {
    		t.Fatalf("AfterFind should not be called times:%d", productWithItem.Item.AfterFindCallTimes)
    	}
    }
    
    type Product5 struct {
    	gorm.Model
    	Name string
    }
    
    var beforeUpdateCall int
    
    func (p *Product5) BeforeUpdate(*gorm.DB) error {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
Back to top