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

Method SetUser

ent/task_create.go:153–155  ·  view source on GitHub ↗

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

(u *User)

Source from the content-addressed store, hash-verified

151
152// SetUser sets the "user" edge to the User entity.
153func (tc *TaskCreate) SetUser(u *User) *TaskCreate {
154 return tc.SetUserID(u.ID)
155}
156
157// Mutation returns the TaskMutation object of the builder.
158func (tc *TaskCreate) Mutation() *TaskMutation {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected