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

Method AddEntityIDs

ent/storagepolicy_create.go:247–250  ·  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

245
246// AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
247func (spc *StoragePolicyCreate) AddEntityIDs(ids ...int) *StoragePolicyCreate {
248 spc.mutation.AddEntityIDs(ids...)
249 return spc
250}
251
252// AddEntities adds the "entities" edges to the Entity entity.
253func (spc *StoragePolicyCreate) AddEntities(e ...*Entity) *StoragePolicyCreate {

Callers 1

AddEntitiesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected