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

Method RemoveEntityIDs

ent/mutation.go:16104–16112  ·  view source on GitHub ↗

RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

16102
16103// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
16104func (m *UserMutation) RemoveEntityIDs(ids ...int) {
16105 if m.removedentities == nil {
16106 m.removedentities = make(map[int]struct{})
16107 }
16108 for i := range ids {
16109 delete(m.entities, ids[i])
16110 m.removedentities[ids[i]] = struct{}{}
16111 }
16112}
16113
16114// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity.
16115func (m *UserMutation) RemovedEntitiesIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected