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

Method ClearUserTasks

ent/task_update.go:398–401  ·  view source on GitHub ↗

ClearUserTasks clears the value of the "user_tasks" field.

()

Source from the content-addressed store, hash-verified

396
397// ClearUserTasks clears the value of the "user_tasks" field.
398func (tuo *TaskUpdateOne) ClearUserTasks() *TaskUpdateOne {
399 tuo.mutation.ClearUserTasks()
400 return tuo
401}
402
403// SetUserID sets the "user" edge to the User entity by ID.
404func (tuo *TaskUpdateOne) SetUserID(id int) *TaskUpdateOne {

Callers

nothing calls this directly

Calls 1

ClearUserTasksMethod · 0.45

Tested by

no test coverage detected