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