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

Method AddEntityIDs

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

3838
3839// AddEntityIDs adds the "entities" edge to the Entity entity by ids.
3840func (m *FileMutation) AddEntityIDs(ids ...int) {
3841 if m.entities == nil {
3842 m.entities = make(map[int]struct{})
3843 }
3844 for i := range ids {
3845 m.entities[ids[i]] = struct{}{}
3846 }
3847}
3848
3849// ClearEntities clears the "entities" edge to the Entity entity.
3850func (m *FileMutation) ClearEntities() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected