SetUserID sets the "user" edge to the User entity by ID.
(id int)
| 402 | |
| 403 | // SetUserID sets the "user" edge to the User entity by ID. |
| 404 | func (tuo *TaskUpdateOne) SetUserID(id int) *TaskUpdateOne { |
| 405 | tuo.mutation.SetUserID(id) |
| 406 | return tuo |
| 407 | } |
| 408 | |
| 409 | // SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil. |
| 410 | func (tuo *TaskUpdateOne) SetNillableUserID(id *int) *TaskUpdateOne { |
no test coverage detected