AddFileIDs adds the "files" edge to the File entity by ids.
(ids ...int)
| 13404 | |
| 13405 | // AddFileIDs adds the "files" edge to the File entity by ids. |
| 13406 | func (m *StoragePolicyMutation) AddFileIDs(ids ...int) { |
| 13407 | if m.files == nil { |
| 13408 | m.files = make(map[int]struct{}) |
| 13409 | } |
| 13410 | for i := range ids { |
| 13411 | m.files[ids[i]] = struct{}{} |
| 13412 | } |
| 13413 | } |
| 13414 | |
| 13415 | // ClearFiles clears the "files" edge to the File entity. |
| 13416 | func (m *StoragePolicyMutation) ClearFiles() { |
nothing calls this directly
no outgoing calls
no test coverage detected