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

Method ClearStoragePolicy

ent/node_update.go:569–572  ·  view source on GitHub ↗

ClearStoragePolicy clears all "storage_policy" edges to the StoragePolicy entity.

()

Source from the content-addressed store, hash-verified

567
568// ClearStoragePolicy clears all "storage_policy" edges to the StoragePolicy entity.
569func (nuo *NodeUpdateOne) ClearStoragePolicy() *NodeUpdateOne {
570 nuo.mutation.ClearStoragePolicy()
571 return nuo
572}
573
574// RemoveStoragePolicyIDs removes the "storage_policy" edge to StoragePolicy entities by IDs.
575func (nuo *NodeUpdateOne) RemoveStoragePolicyIDs(ids ...int) *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

ClearStoragePolicyMethod · 0.45

Tested by

no test coverage detected