AddFile adds the "file" edges to the File entity.
(f ...*File)
| 210 | |
| 211 | // AddFile adds the "file" edges to the File entity. |
| 212 | func (eu *EntityUpdate) AddFile(f ...*File) *EntityUpdate { |
| 213 | ids := make([]int, len(f)) |
| 214 | for i := range f { |
| 215 | ids[i] = f[i].ID |
| 216 | } |
| 217 | return eu.AddFileIDs(ids...) |
| 218 | } |
| 219 | |
| 220 | // SetUserID sets the "user" edge to the User entity by ID. |
| 221 | func (eu *EntityUpdate) SetUserID(id int) *EntityUpdate { |
nothing calls this directly
no test coverage detected