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

Method SetNode

ent/storagepolicy_create.go:262–264  ·  view source on GitHub ↗

SetNode sets the "node" edge to the Node entity.

(n *Node)

Source from the content-addressed store, hash-verified

260
261// SetNode sets the "node" edge to the Node entity.
262func (spc *StoragePolicyCreate) SetNode(n *Node) *StoragePolicyCreate {
263 return spc.SetNodeID(n.ID)
264}
265
266// Mutation returns the StoragePolicyMutation object of the builder.
267func (spc *StoragePolicyCreate) Mutation() *StoragePolicyMutation {

Callers

nothing calls this directly

Calls 1

SetNodeIDMethod · 0.95

Tested by

no test coverage detected