RemoveStoragePolicyIDs removes the "storage_policy" edge to the StoragePolicy entity by IDs.
(ids ...int)
| 7737 | |
| 7738 | // RemoveStoragePolicyIDs removes the "storage_policy" edge to the StoragePolicy entity by IDs. |
| 7739 | func (m *NodeMutation) RemoveStoragePolicyIDs(ids ...int) { |
| 7740 | if m.removedstorage_policy == nil { |
| 7741 | m.removedstorage_policy = make(map[int]struct{}) |
| 7742 | } |
| 7743 | for i := range ids { |
| 7744 | delete(m.storage_policy, ids[i]) |
| 7745 | m.removedstorage_policy[ids[i]] = struct{}{} |
| 7746 | } |
| 7747 | } |
| 7748 | |
| 7749 | // RemovedStoragePolicy returns the removed IDs of the "storage_policy" edge to the StoragePolicy entity. |
| 7750 | func (m *NodeMutation) RemovedStoragePolicyIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected