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

Method SetUser

ent/task_update.go:418–420  ·  view source on GitHub ↗

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

(u *User)

Source from the content-addressed store, hash-verified

416
417// SetUser sets the "user" edge to the User entity.
418func (tuo *TaskUpdateOne) SetUser(u *User) *TaskUpdateOne {
419 return tuo.SetUserID(u.ID)
420}
421
422// Mutation returns the TaskMutation object of the builder.
423func (tuo *TaskUpdateOne) Mutation() *TaskMutation {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected