AddShares adds the "shares" edges to the Share entity.
(s ...*Share)
| 262 | |
| 263 | // AddShares adds the "shares" edges to the Share entity. |
| 264 | func (uu *UserUpdate) AddShares(s ...*Share) *UserUpdate { |
| 265 | ids := make([]int, len(s)) |
| 266 | for i := range s { |
| 267 | ids[i] = s[i].ID |
| 268 | } |
| 269 | return uu.AddShareIDs(ids...) |
| 270 | } |
| 271 | |
| 272 | // AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs. |
| 273 | func (uu *UserUpdate) AddPasskeyIDs(ids ...int) *UserUpdate { |
nothing calls this directly
no test coverage detected