AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 993 | |
| 994 | // AddFiles adds the "files" edges to the File entity. |
| 995 | func (spuo *StoragePolicyUpdateOne) AddFiles(f ...*File) *StoragePolicyUpdateOne { |
| 996 | ids := make([]int, len(f)) |
| 997 | for i := range f { |
| 998 | ids[i] = f[i].ID |
| 999 | } |
| 1000 | return spuo.AddFileIDs(ids...) |
| 1001 | } |
| 1002 | |
| 1003 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 1004 | func (spuo *StoragePolicyUpdateOne) AddEntityIDs(ids ...int) *StoragePolicyUpdateOne { |
nothing calls this directly
no test coverage detected