- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for dont_update (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/hooks_test.go
DB.Save(&p2) p2.Code = "dont_update" if DB.Save(&p2).Error == nil { t.Fatalf("An error from before update callbacks happened when update with invalid value") } if DB.Where("code = ?", "update_callback").First(&Product{}).Error != nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") } if DB.Where("code = ?", "dont_update").First(&Product{}).Error == nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jun 17 03:59:06 GMT 2024 - 16.7K bytes - Click Count (0)