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

Method SetUser

ent/task_update.go:148–150  ·  view source on GitHub ↗

SetUser sets the "user" edge to the User entity.

(u *User)

Source from the content-addressed store, hash-verified

146
147// SetUser sets the "user" edge to the User entity.
148func (tu *TaskUpdate) SetUser(u *User) *TaskUpdate {
149 return tu.SetUserID(u.ID)
150}
151
152// Mutation returns the TaskMutation object of the builder.
153func (tu *TaskUpdate) Mutation() *TaskMutation {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected