SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil.
(id *int)
| 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 { |
| 587 | if id != nil { |
| 588 | suo = suo.SetFileID(*id) |
| 589 | } |
| 590 | return suo |
| 591 | } |
| 592 | |
| 593 | // SetFile sets the "file" edge to the File entity. |
| 594 | func (suo *ShareUpdateOne) SetFile(f *File) *ShareUpdateOne { |