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

Method SetNillableUserTasks

ent/task_create.go:131–136  ·  view source on GitHub ↗

SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

129
130// SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.
131func (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.
139func (tc *TaskCreate) SetUserID(id int) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetUserTasksMethod · 0.95

Tested by

no test coverage detected