AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by ids.
(ids ...int)
| 7717 | |
| 7718 | // AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by ids. |
| 7719 | func (m *NodeMutation) AddStoragePolicyIDs(ids ...int) { |
| 7720 | if m.storage_policy == nil { |
| 7721 | m.storage_policy = make(map[int]struct{}) |
| 7722 | } |
| 7723 | for i := range ids { |
| 7724 | m.storage_policy[ids[i]] = struct{}{} |
| 7725 | } |
| 7726 | } |
| 7727 | |
| 7728 | // ClearStoragePolicy clears the "storage_policy" edge to the StoragePolicy entity. |
| 7729 | func (m *NodeMutation) ClearStoragePolicy() { |
nothing calls this directly
no outgoing calls
no test coverage detected