AddGroupIDs adds the "groups" edge to the Group entity by ids.
(ids ...int)
| 13350 | |
| 13351 | // AddGroupIDs adds the "groups" edge to the Group entity by ids. |
| 13352 | func (m *StoragePolicyMutation) AddGroupIDs(ids ...int) { |
| 13353 | if m.groups == nil { |
| 13354 | m.groups = make(map[int]struct{}) |
| 13355 | } |
| 13356 | for i := range ids { |
| 13357 | m.groups[ids[i]] = struct{}{} |
| 13358 | } |
| 13359 | } |
| 13360 | |
| 13361 | // ClearGroups clears the "groups" edge to the Group entity. |
| 13362 | func (m *StoragePolicyMutation) ClearGroups() { |
nothing calls this directly
no outgoing calls
no test coverage detected