RemoveFile removes "file" edges to File entities.
(f ...*File)
| 745 | |
| 746 | // RemoveFile removes "file" edges to File entities. |
| 747 | func (euo *EntityUpdateOne) RemoveFile(f ...*File) *EntityUpdateOne { |
| 748 | ids := make([]int, len(f)) |
| 749 | for i := range f { |
| 750 | ids[i] = f[i].ID |
| 751 | } |
| 752 | return euo.RemoveFileIDs(ids...) |
| 753 | } |
| 754 | |
| 755 | // ClearUser clears the "user" edge to the User entity. |
| 756 | func (euo *EntityUpdateOne) ClearUser() *EntityUpdateOne { |
nothing calls this directly
no test coverage detected