SetNillableWeight sets the "weight" field if the given value is not nil.
(i *int)
| 133 | |
| 134 | // SetNillableWeight sets the "weight" field if the given value is not nil. |
| 135 | func (nc *NodeCreate) SetNillableWeight(i *int) *NodeCreate { |
| 136 | if i != nil { |
| 137 | nc.SetWeight(*i) |
| 138 | } |
| 139 | return nc |
| 140 | } |
| 141 | |
| 142 | // AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs. |
| 143 | func (nc *NodeCreate) AddStoragePolicyIDs(ids ...int) *NodeCreate { |