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

Method AddEntityIDs

ent/mutation.go:16084–16091  ·  view source on GitHub ↗

AddEntityIDs adds the "entities" edge to the Entity entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

16082
16083// AddEntityIDs adds the "entities" edge to the Entity entity by ids.
16084func (m *UserMutation) AddEntityIDs(ids ...int) {
16085 if m.entities == nil {
16086 m.entities = make(map[int]struct{})
16087 }
16088 for i := range ids {
16089 m.entities[ids[i]] = struct{}{}
16090 }
16091}
16092
16093// ClearEntities clears the "entities" edge to the Entity entity.
16094func (m *UserMutation) ClearEntities() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected