SetUserID sets the "user" edge to the User entity by ID.
(id int)
| 145 | |
| 146 | // SetUserID sets the "user" edge to the User entity by ID. |
| 147 | func (sc *ShareCreate) SetUserID(id int) *ShareCreate { |
| 148 | sc.mutation.SetUserID(id) |
| 149 | return sc |
| 150 | } |
| 151 | |
| 152 | // SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil. |
| 153 | func (sc *ShareCreate) SetNillableUserID(id *int) *ShareCreate { |
no outgoing calls
no test coverage detected