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

Method AddEntities

ent/user_create.go:279–285  ·  view source on GitHub ↗

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

(e ...*Entity)

Source from the content-addressed store, hash-verified

277
278// AddEntities adds the "entities" edges to the Entity entity.
279func (uc *UserCreate) AddEntities(e ...*Entity) *UserCreate {
280 ids := make([]int, len(e))
281 for i := range e {
282 ids[i] = e[i].ID
283 }
284 return uc.AddEntityIDs(ids...)
285}
286
287// AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs.
288func (uc *UserCreate) AddOauthGrantIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddEntityIDsMethod · 0.95

Tested by

no test coverage detected