- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestAssociationNotNullClear (1.02 seconds)
-
tests/associations_test.go
if err := DB.Model(&user).Association("Invalid").Find(&user.Company).Error; err == nil { t.Fatalf("should return errors for invalid association, but got nil") } } func TestAssociationNotNullClear(t *testing.T) { type Profile struct { gorm.Model Number string MemberID uint `gorm:"not null"` } type Member struct { gorm.Model Profiles []Profile }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 13.3K bytes - Click Count (0)