SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.
(i *int)
| 129 | |
| 130 | // SetNillableUserTasks sets the "user_tasks" field if the given value is not nil. |
| 131 | func (tc *TaskCreate) SetNillableUserTasks(i *int) *TaskCreate { |
| 132 | if i != nil { |
| 133 | tc.SetUserTasks(*i) |
| 134 | } |
| 135 | return tc |
| 136 | } |
| 137 | |
| 138 | // SetUserID sets the "user" edge to the User entity by ID. |
| 139 | func (tc *TaskCreate) SetUserID(id int) *TaskCreate { |
nothing calls this directly
no test coverage detected