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

Method RemoveEntityIDs

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

3858
3859// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
3860func (m *FileMutation) RemoveEntityIDs(ids ...int) {
3861 if m.removedentities == nil {
3862 m.removedentities = make(map[int]struct{})
3863 }
3864 for i := range ids {
3865 delete(m.entities, ids[i])
3866 m.removedentities[ids[i]] = struct{}{}
3867 }
3868}
3869
3870// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity.
3871func (m *FileMutation) RemovedEntitiesIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected