SetNode sets the "node" edge to the Node entity.
(n *Node)
| 174 | |
| 175 | // SetNode sets the "node" edge to the Node entity. |
| 176 | func (nvc *NodeVersionCreate) SetNode(n *Node) *NodeVersionCreate { |
| 177 | return nvc.SetNodeID(n.ID) |
| 178 | } |
| 179 | |
| 180 | // SetStorageFileID sets the "storage_file" edge to the StorageFile entity by ID. |
| 181 | func (nvc *NodeVersionCreate) SetStorageFileID(id uuid.UUID) *NodeVersionCreate { |