RemoveFileIDs removes the "file" edge to the File entity by IDs.
(ids ...int)
| 2371 | |
| 2372 | // RemoveFileIDs removes the "file" edge to the File entity by IDs. |
| 2373 | func (m *EntityMutation) RemoveFileIDs(ids ...int) { |
| 2374 | if m.removedfile == nil { |
| 2375 | m.removedfile = make(map[int]struct{}) |
| 2376 | } |
| 2377 | for i := range ids { |
| 2378 | delete(m.file, ids[i]) |
| 2379 | m.removedfile[ids[i]] = struct{}{} |
| 2380 | } |
| 2381 | } |
| 2382 | |
| 2383 | // RemovedFile returns the removed IDs of the "file" edge to the File entity. |
| 2384 | func (m *EntityMutation) RemovedFileIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected