- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestHasManyAssociationUnscoped (0.52 sec)
-
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)"`
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0)