RemoveFile removes "file" edges to File entities.
(f ...*File)
| 266 | |
| 267 | // RemoveFile removes "file" edges to File entities. |
| 268 | func (eu *EntityUpdate) RemoveFile(f ...*File) *EntityUpdate { |
| 269 | ids := make([]int, len(f)) |
| 270 | for i := range f { |
| 271 | ids[i] = f[i].ID |
| 272 | } |
| 273 | return eu.RemoveFileIDs(ids...) |
| 274 | } |
| 275 | |
| 276 | // ClearUser clears the "user" edge to the User entity. |
| 277 | func (eu *EntityUpdate) ClearUser() *EntityUpdate { |
no test coverage detected