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

Method AddEntities

ent/user_update.go:324–330  ·  view source on GitHub ↗

AddEntities adds the "entities" edges to the Entity entity.

(e ...*Entity)

Source from the content-addressed store, hash-verified

322
323// AddEntities adds the "entities" edges to the Entity entity.
324func (uu *UserUpdate) AddEntities(e ...*Entity) *UserUpdate {
325 ids := make([]int, len(e))
326 for i := range e {
327 ids[i] = e[i].ID
328 }
329 return uu.AddEntityIDs(ids...)
330}
331
332// AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs.
333func (uu *UserUpdate) AddOauthGrantIDs(ids ...int) *UserUpdate {

Callers

nothing calls this directly

Calls 1

AddEntityIDsMethod · 0.95

Tested by

no test coverage detected