AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 232 | |
| 233 | // AddFiles adds the "files" edges to the File entity. |
| 234 | func (uu *UserUpdate) AddFiles(f ...*File) *UserUpdate { |
| 235 | ids := make([]int, len(f)) |
| 236 | for i := range f { |
| 237 | ids[i] = f[i].ID |
| 238 | } |
| 239 | return uu.AddFileIDs(ids...) |
| 240 | } |
| 241 | |
| 242 | // AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs. |
| 243 | func (uu *UserUpdate) AddDavAccountIDs(ids ...int) *UserUpdate { |
nothing calls this directly
no test coverage detected