RemoveFiles removes "files" edges to File entities.
(f ...*File)
| 376 | |
| 377 | // RemoveFiles removes "files" edges to File entities. |
| 378 | func (spu *StoragePolicyUpdate) RemoveFiles(f ...*File) *StoragePolicyUpdate { |
| 379 | ids := make([]int, len(f)) |
| 380 | for i := range f { |
| 381 | ids[i] = f[i].ID |
| 382 | } |
| 383 | return spu.RemoveFileIDs(ids...) |
| 384 | } |
| 385 | |
| 386 | // ClearEntities clears all "entities" edges to the Entity entity. |
| 387 | func (spu *StoragePolicyUpdate) ClearEntities() *StoragePolicyUpdate { |
nothing calls this directly
no test coverage detected