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

Method RemoveEntityIDs

ent/mutation.go:13480–13488  ·  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

13478
13479// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
13480func (m *StoragePolicyMutation) RemoveEntityIDs(ids ...int) {
13481 if m.removedentities == nil {
13482 m.removedentities = make(map[int]struct{})
13483 }
13484 for i := range ids {
13485 delete(m.entities, ids[i])
13486 m.removedentities[ids[i]] = struct{}{}
13487 }
13488}
13489
13490// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity.
13491func (m *StoragePolicyMutation) RemovedEntitiesIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected