AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 187 | |
| 188 | // AddFiles adds the "files" edges to the File entity. |
| 189 | func (uc *UserCreate) AddFiles(f ...*File) *UserCreate { |
| 190 | ids := make([]int, len(f)) |
| 191 | for i := range f { |
| 192 | ids[i] = f[i].ID |
| 193 | } |
| 194 | return uc.AddFileIDs(ids...) |
| 195 | } |
| 196 | |
| 197 | // AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs. |
| 198 | func (uc *UserCreate) AddDavAccountIDs(ids ...int) *UserCreate { |
nothing calls this directly
no test coverage detected