AddDavAccounts adds the "dav_accounts" edges to the DavAccount entity.
(d ...*DavAccount)
| 202 | |
| 203 | // AddDavAccounts adds the "dav_accounts" edges to the DavAccount entity. |
| 204 | func (uc *UserCreate) AddDavAccounts(d ...*DavAccount) *UserCreate { |
| 205 | ids := make([]int, len(d)) |
| 206 | for i := range d { |
| 207 | ids[i] = d[i].ID |
| 208 | } |
| 209 | return uc.AddDavAccountIDs(ids...) |
| 210 | } |
| 211 | |
| 212 | // AddShareIDs adds the "shares" edge to the Share entity by IDs. |
| 213 | func (uc *UserCreate) AddShareIDs(ids ...int) *UserCreate { |
nothing calls this directly
no test coverage detected