Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _key (0.12 sec)

  1. tests/associations_belongs_to_test.go

    	// unexist company id
    	unexistCompanyID := company.ID + 9999999
    	user = User{Name: "invalid-user-with-invalid-belongs-to-foreign-key", CompanyID: &unexistCompanyID}
    	if err := DB.Create(&user).Error; err == nil {
    		tidbSkip(t, "not support the foreign key feature")
    		t.Errorf("should have gotten foreign key violation error")
    	}
    }
    
    func TestBelongsToAssociationForSlice(t *testing.T) {
    	users := []User{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 9.3K bytes
    - Viewed (0)
Back to top