RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.
(ids ...int)
| 13370 | |
| 13371 | // RemoveGroupIDs removes the "groups" edge to the Group entity by IDs. |
| 13372 | func (m *StoragePolicyMutation) RemoveGroupIDs(ids ...int) { |
| 13373 | if m.removedgroups == nil { |
| 13374 | m.removedgroups = make(map[int]struct{}) |
| 13375 | } |
| 13376 | for i := range ids { |
| 13377 | delete(m.groups, ids[i]) |
| 13378 | m.removedgroups[ids[i]] = struct{}{} |
| 13379 | } |
| 13380 | } |
| 13381 | |
| 13382 | // RemovedGroups returns the removed IDs of the "groups" edge to the Group entity. |
| 13383 | func (m *StoragePolicyMutation) RemovedGroupsIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected