SetCounter sets the "counter" field.
(i int64)
| 383 | |
| 384 | // SetCounter sets the "counter" field. |
| 385 | func (m *ModelMutation) SetCounter(i int64) { |
| 386 | m.counter = &i |
| 387 | m.addcounter = nil |
| 388 | } |
| 389 | |
| 390 | // Counter returns the value of the "counter" field in the mutation. |
| 391 | func (m *ModelMutation) Counter() (r int64, exists bool) { |