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

Method SetUserID

ent/task_update.go:404–407  ·  view source on GitHub ↗

SetUserID sets the "user" edge to the User entity by ID.

(id int)

Source from the content-addressed store, hash-verified

402
403// SetUserID sets the "user" edge to the User entity by ID.
404func (tuo *TaskUpdateOne) SetUserID(id int) *TaskUpdateOne {
405 tuo.mutation.SetUserID(id)
406 return tuo
407}
408
409// SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
410func (tuo *TaskUpdateOne) SetNillableUserID(id *int) *TaskUpdateOne {

Callers 2

SetNillableUserIDMethod · 0.95
SetUserMethod · 0.95

Calls 1

SetUserIDMethod · 0.45

Tested by

no test coverage detected