AddEntityIDs adds the "entities" edge to the Entity entity by ids.
(ids ...int)
| 16082 | |
| 16083 | // AddEntityIDs adds the "entities" edge to the Entity entity by ids. |
| 16084 | func (m *UserMutation) AddEntityIDs(ids ...int) { |
| 16085 | if m.entities == nil { |
| 16086 | m.entities = make(map[int]struct{}) |
| 16087 | } |
| 16088 | for i := range ids { |
| 16089 | m.entities[ids[i]] = struct{}{} |
| 16090 | } |
| 16091 | } |
| 16092 | |
| 16093 | // ClearEntities clears the "entities" edge to the Entity entity. |
| 16094 | func (m *UserMutation) ClearEntities() { |
nothing calls this directly
no outgoing calls
no test coverage detected