MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / SetUser

Method SetUser

ent/task.go:237–240  ·  view source on GitHub ↗

SetUser manually set the edge as loaded state.

(v *User)

Source from the content-addressed store, hash-verified

235
236// SetUser manually set the edge as loaded state.
237func (e *Task) SetUser(v *User) {
238 e.Edges.User = v
239 e.Edges.loadedTypes[0] = true
240}
241
242// Tasks is a parsable slice of Task.
243type Tasks []*Task

Callers 3

newGenerateThumbTaskFunction · 0.45
CreateEntityMethod · 0.45
GetPendingTasksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected