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

Method SetUserID

ent/task_create.go:139–142  ·  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

137
138// SetUserID sets the "user" edge to the User entity by ID.
139func (tc *TaskCreate) SetUserID(id int) *TaskCreate {
140 tc.mutation.SetUserID(id)
141 return tc
142}
143
144// SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
145func (tc *TaskCreate) SetNillableUserID(id *int) *TaskCreate {

Callers 2

SetNillableUserIDMethod · 0.95
SetUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected