AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 1251 | |
| 1252 | // AddFiles adds the "files" edges to the File entity. |
| 1253 | func (uuo *UserUpdateOne) AddFiles(f ...*File) *UserUpdateOne { |
| 1254 | ids := make([]int, len(f)) |
| 1255 | for i := range f { |
| 1256 | ids[i] = f[i].ID |
| 1257 | } |
| 1258 | return uuo.AddFileIDs(ids...) |
| 1259 | } |
| 1260 | |
| 1261 | // AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs. |
| 1262 | func (uuo *UserUpdateOne) AddDavAccountIDs(ids ...int) *UserUpdateOne { |
nothing calls this directly
no test coverage detected