SetFileID sets the "file" edge to the File entity by ID.
(id int)
| 578 | |
| 579 | // SetFileID sets the "file" edge to the File entity by ID. |
| 580 | func (suo *ShareUpdateOne) SetFileID(id int) *ShareUpdateOne { |
| 581 | suo.mutation.SetFileID(id) |
| 582 | return suo |
| 583 | } |
| 584 | |
| 585 | // SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil. |
| 586 | func (suo *ShareUpdateOne) SetNillableFileID(id *int) *ShareUpdateOne { |
no test coverage detected