SetUserID sets the "user" edge to the User entity by ID.
(id int)
| 137 | |
| 138 | // SetUserID sets the "user" edge to the User entity by ID. |
| 139 | func (tc *TaskCreate) SetUserID(id int) *TaskCreate { |
| 140 | tc.mutation.SetUserID(id) |
| 141 | return tc |
| 142 | } |
| 143 | |
| 144 | // SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil. |
| 145 | func (tc *TaskCreate) SetNillableUserID(id *int) *TaskCreate { |
no outgoing calls
no test coverage detected