AddEntityIDs adds the "entities" edge to the Entity entity by ids.
(ids ...int)
| 13458 | |
| 13459 | // AddEntityIDs adds the "entities" edge to the Entity entity by ids. |
| 13460 | func (m *StoragePolicyMutation) AddEntityIDs(ids ...int) { |
| 13461 | if m.entities == nil { |
| 13462 | m.entities = make(map[int]struct{}) |
| 13463 | } |
| 13464 | for i := range ids { |
| 13465 | m.entities[ids[i]] = struct{}{} |
| 13466 | } |
| 13467 | } |
| 13468 | |
| 13469 | // ClearEntities clears the "entities" edge to the Entity entity. |
| 13470 | func (m *StoragePolicyMutation) ClearEntities() { |
nothing calls this directly
no outgoing calls
no test coverage detected