RemoveFileIDs removes the "files" edge to the File entity by IDs.
(ids ...int)
| 13424 | |
| 13425 | // RemoveFileIDs removes the "files" edge to the File entity by IDs. |
| 13426 | func (m *StoragePolicyMutation) RemoveFileIDs(ids ...int) { |
| 13427 | if m.removedfiles == nil { |
| 13428 | m.removedfiles = make(map[int]struct{}) |
| 13429 | } |
| 13430 | for i := range ids { |
| 13431 | delete(m.files, ids[i]) |
| 13432 | m.removedfiles[ids[i]] = struct{}{} |
| 13433 | } |
| 13434 | } |
| 13435 | |
| 13436 | // RemovedFiles returns the removed IDs of the "files" edge to the File entity. |
| 13437 | func (m *StoragePolicyMutation) RemovedFilesIDs() (ids []int) { |
nothing calls this directly
no outgoing calls
no test coverage detected