Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestForeignKeyConstraintsBelongsTo (0.1 sec)

  1. tests/associations_test.go

    		t.Fatalf("Should not find deleted member")
    	}
    
    	if err := DB.First(&profile2, profile.ID).Error; err == nil {
    		t.Fatalf("Should not find deleted profile")
    	}
    }
    
    func TestForeignKeyConstraintsBelongsTo(t *testing.T) {
    	tidbSkip(t, "not support the foreign key feature")
    
    	type Profile struct {
    		ID    uint
    		Name  string
    		Refer uint `gorm:"uniqueIndex"`
    	}
    
    	type Member struct {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top