- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestDeleteWithAssociations (0.12 sec)
-
tests/delete_test.go
} if err := DB.Session(&gorm.Session{AllowGlobalUpdate: true}).Delete(&User{}).Error; err != nil { t.Errorf("should returns no error while enable global update, but got err %v", err) } } func TestDeleteWithAssociations(t *testing.T) { user := GetUser("delete_with_associations", Config{Account: true, Pets: 2, Toys: 4, Company: true, Manager: true, Team: 1, Languages: 1, Friends: 1}) if err := DB.Create(user).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Oct 10 07:03:34 UTC 2023 - 9.4K bytes - Viewed (0)