RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
(ids ...int)
| 16102 | |
| 16103 | // RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. |
| 16104 | func (m *UserMutation) RemoveEntityIDs(ids ...int) { |
| 16105 | if m.removedentities == nil { |
| 16106 | m.removedentities = make(map[int]struct{}) |
| 16107 | } |
| 16108 | for i := range ids { |
| 16109 | delete(m.entities, ids[i]) |
| 16110 | m.removedentities[ids[i]] = struct{}{} |
| 16111 | } |
| 16112 | } |
| 16113 | |
| 16114 | // RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. |
| 16115 | func (m *UserMutation) RemovedEntitiesIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected