AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 309 | |
| 310 | // AddFiles adds the "files" edges to the File entity. |
| 311 | func (spu *StoragePolicyUpdate) AddFiles(f ...*File) *StoragePolicyUpdate { |
| 312 | ids := make([]int, len(f)) |
| 313 | for i := range f { |
| 314 | ids[i] = f[i].ID |
| 315 | } |
| 316 | return spu.AddFileIDs(ids...) |
| 317 | } |
| 318 | |
| 319 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 320 | func (spu *StoragePolicyUpdate) AddEntityIDs(ids ...int) *StoragePolicyUpdate { |
nothing calls this directly
no test coverage detected