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

Method SetUser

ent/entity_update.go:714–716  ·  view source on GitHub ↗

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

(u *User)

Source from the content-addressed store, hash-verified

712
713// SetUser sets the "user" edge to the User entity.
714func (euo *EntityUpdateOne) SetUser(u *User) *EntityUpdateOne {
715 return euo.SetUserID(u.ID)
716}
717
718// SetStoragePolicyID sets the "storage_policy" edge to the StoragePolicy entity by ID.
719func (euo *EntityUpdateOne) SetStoragePolicyID(id int) *EntityUpdateOne {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected