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

Method SetStoragePolicyID

ent/entity_create.go:179–182  ·  view source on GitHub ↗

SetStoragePolicyID sets the "storage_policy" edge to the StoragePolicy entity by ID.

(id int)

Source from the content-addressed store, hash-verified

177
178// SetStoragePolicyID sets the "storage_policy" edge to the StoragePolicy entity by ID.
179func (ec *EntityCreate) SetStoragePolicyID(id int) *EntityCreate {
180 ec.mutation.SetStoragePolicyID(id)
181 return ec
182}
183
184// SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.
185func (ec *EntityCreate) SetStoragePolicy(s *StoragePolicy) *EntityCreate {

Callers 1

SetStoragePolicyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected