AddEntityIDs adds the "entities" edge to the Entity entity by ids.
(ids ...int)
| 3838 | |
| 3839 | // AddEntityIDs adds the "entities" edge to the Entity entity by ids. |
| 3840 | func (m *FileMutation) AddEntityIDs(ids ...int) { |
| 3841 | if m.entities == nil { |
| 3842 | m.entities = make(map[int]struct{}) |
| 3843 | } |
| 3844 | for i := range ids { |
| 3845 | m.entities[ids[i]] = struct{}{} |
| 3846 | } |
| 3847 | } |
| 3848 | |
| 3849 | // ClearEntities clears the "entities" edge to the Entity entity. |
| 3850 | func (m *FileMutation) ClearEntities() { |
nothing calls this directly
no outgoing calls
no test coverage detected