Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBelongsToAssociationForSlice (0.16 sec)

  1. tests/associations_belongs_to_test.go

    	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{
    		*GetUser("slice-belongs-to-1", Config{Company: true, Manager: true}),
    		*GetUser("slice-belongs-to-2", Config{Company: true, Manager: false}),
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top