MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AddTaskIDs

Method AddTaskIDs

ent/mutation.go:15976–15983  ·  view source on GitHub ↗

AddTaskIDs adds the "tasks" edge to the Task entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

15974
15975// AddTaskIDs adds the "tasks" edge to the Task entity by ids.
15976func (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.
15986func (m *UserMutation) ClearTasks() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected