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

Method RemoveEntities

ent/user_update.go:497–503  ·  view source on GitHub ↗

RemoveEntities removes "entities" edges to Entity entities.

(e ...*Entity)

Source from the content-addressed store, hash-verified

495
496// RemoveEntities removes "entities" edges to Entity entities.
497func (uu *UserUpdate) RemoveEntities(e ...*Entity) *UserUpdate {
498 ids := make([]int, len(e))
499 for i := range e {
500 ids[i] = e[i].ID
501 }
502 return uu.RemoveEntityIDs(ids...)
503}
504
505// ClearOauthGrants clears all "oauth_grants" edges to the OAuthGrant entity.
506func (uu *UserUpdate) ClearOauthGrants() *UserUpdate {

Callers

nothing calls this directly

Calls 1

RemoveEntityIDsMethod · 0.95

Tested by

no test coverage detected