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

Method AddEntityIDs

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

13458
13459// AddEntityIDs adds the "entities" edge to the Entity entity by ids.
13460func (m *StoragePolicyMutation) AddEntityIDs(ids ...int) {
13461 if m.entities == nil {
13462 m.entities = make(map[int]struct{})
13463 }
13464 for i := range ids {
13465 m.entities[ids[i]] = struct{}{}
13466 }
13467}
13468
13469// ClearEntities clears the "entities" edge to the Entity entity.
13470func (m *StoragePolicyMutation) ClearEntities() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected