| 298 | } |
| 299 | |
| 300 | type Product3 struct { |
| 301 | gorm.Model |
| 302 | Name string |
| 303 | Code string |
| 304 | Price int64 |
| 305 | Owner string |
| 306 | } |
| 307 | |
| 308 | func (s Product3) BeforeCreate(tx *gorm.DB) (err error) { |
| 309 | tx.Statement.SetColumn("Price", s.Price+100) |
nothing calls this directly
no outgoing calls
no test coverage detected