RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
(ids ...int)
| 13478 | |
| 13479 | // RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. |
| 13480 | func (m *StoragePolicyMutation) RemoveEntityIDs(ids ...int) { |
| 13481 | if m.removedentities == nil { |
| 13482 | m.removedentities = make(map[int]struct{}) |
| 13483 | } |
| 13484 | for i := range ids { |
| 13485 | delete(m.entities, ids[i]) |
| 13486 | m.removedentities[ids[i]] = struct{}{} |
| 13487 | } |
| 13488 | } |
| 13489 | |
| 13490 | // RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. |
| 13491 | func (m *StoragePolicyMutation) RemovedEntitiesIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected