- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestHasManyAssociationUnscoped (0.12 seconds)
-
tests/associations_has_many_test.go
} AssertAssociationCount(t, users, "Toys", 2, "after delete") // Clear DB.Model(&users).Association("Toys").Clear() AssertAssociationCount(t, users, "Toys", 0, "After Clear") } func TestHasManyAssociationUnscoped(t *testing.T) { type ItemContent struct { gorm.Model ItemID uint `gorm:"not null"` Name string `gorm:"not null;type:varchar(50)"` LanguageCode string `gorm:"not null;type:varchar(2)"`
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 16.3K bytes - Click Count (0)