AddTasks adds the "tasks" edges to the Task entity.
(t ...*Task)
| 247 | |
| 248 | // AddTasks adds the "tasks" edges to the Task entity. |
| 249 | func (uc *UserCreate) AddTasks(t ...*Task) *UserCreate { |
| 250 | ids := make([]int, len(t)) |
| 251 | for i := range t { |
| 252 | ids[i] = t[i].ID |
| 253 | } |
| 254 | return uc.AddTaskIDs(ids...) |
| 255 | } |
| 256 | |
| 257 | // AddFseventIDs adds the "fsevents" edge to the FsEvent entity by IDs. |
| 258 | func (uc *UserCreate) AddFseventIDs(ids ...int) *UserCreate { |
nothing calls this directly
no test coverage detected