RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs.
(ids ...int)
| 3858 | |
| 3859 | // RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. |
| 3860 | func (m *FileMutation) RemoveEntityIDs(ids ...int) { |
| 3861 | if m.removedentities == nil { |
| 3862 | m.removedentities = make(map[int]struct{}) |
| 3863 | } |
| 3864 | for i := range ids { |
| 3865 | delete(m.entities, ids[i]) |
| 3866 | m.removedentities[ids[i]] = struct{}{} |
| 3867 | } |
| 3868 | } |
| 3869 | |
| 3870 | // RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. |
| 3871 | func (m *FileMutation) RemovedEntitiesIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected