AddFileIDs adds the "file" edge to the File entity by ids.
(ids ...int)
| 2351 | |
| 2352 | // AddFileIDs adds the "file" edge to the File entity by ids. |
| 2353 | func (m *EntityMutation) AddFileIDs(ids ...int) { |
| 2354 | if m.file == nil { |
| 2355 | m.file = make(map[int]struct{}) |
| 2356 | } |
| 2357 | for i := range ids { |
| 2358 | m.file[ids[i]] = struct{}{} |
| 2359 | } |
| 2360 | } |
| 2361 | |
| 2362 | // ClearFile clears the "file" edge to the File entity. |
| 2363 | func (m *EntityMutation) ClearFile() { |
nothing calls this directly
no outgoing calls
no test coverage detected