RemoveFiles removes "files" edges to File entities.
(f ...*File)
| 1060 | |
| 1061 | // RemoveFiles removes "files" edges to File entities. |
| 1062 | func (spuo *StoragePolicyUpdateOne) RemoveFiles(f ...*File) *StoragePolicyUpdateOne { |
| 1063 | ids := make([]int, len(f)) |
| 1064 | for i := range f { |
| 1065 | ids[i] = f[i].ID |
| 1066 | } |
| 1067 | return spuo.RemoveFileIDs(ids...) |
| 1068 | } |
| 1069 | |
| 1070 | // ClearEntities clears all "entities" edges to the Entity entity. |
| 1071 | func (spuo *StoragePolicyUpdateOne) ClearEntities() *StoragePolicyUpdateOne { |
nothing calls this directly
no test coverage detected