AddTaskIDs adds the "tasks" edge to the Task entity by ids.
(ids ...int)
| 15974 | |
| 15975 | // AddTaskIDs adds the "tasks" edge to the Task entity by ids. |
| 15976 | func (m *UserMutation) AddTaskIDs(ids ...int) { |
| 15977 | if m.tasks == nil { |
| 15978 | m.tasks = make(map[int]struct{}) |
| 15979 | } |
| 15980 | for i := range ids { |
| 15981 | m.tasks[ids[i]] = struct{}{} |
| 15982 | } |
| 15983 | } |
| 15984 | |
| 15985 | // ClearTasks clears the "tasks" edge to the Task entity. |
| 15986 | func (m *UserMutation) ClearTasks() { |
nothing calls this directly
no outgoing calls
no test coverage detected