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

Method AddEntities

ent/user_update.go:1343–1349  ·  view source on GitHub ↗

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

(e ...*Entity)

Source from the content-addressed store, hash-verified

1341
1342// AddEntities adds the "entities" edges to the Entity entity.
1343func (uuo *UserUpdateOne) AddEntities(e ...*Entity) *UserUpdateOne {
1344 ids := make([]int, len(e))
1345 for i := range e {
1346 ids[i] = e[i].ID
1347 }
1348 return uuo.AddEntityIDs(ids...)
1349}
1350
1351// AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs.
1352func (uuo *UserUpdateOne) AddOauthGrantIDs(ids ...int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

AddEntityIDsMethod · 0.95

Tested by

no test coverage detected