AddShares adds the "shares" edges to the Share entity.
(s ...*Share)
| 217 | |
| 218 | // AddShares adds the "shares" edges to the Share entity. |
| 219 | func (uc *UserCreate) AddShares(s ...*Share) *UserCreate { |
| 220 | ids := make([]int, len(s)) |
| 221 | for i := range s { |
| 222 | ids[i] = s[i].ID |
| 223 | } |
| 224 | return uc.AddShareIDs(ids...) |
| 225 | } |
| 226 | |
| 227 | // AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs. |
| 228 | func (uc *UserCreate) AddPasskeyIDs(ids ...int) *UserCreate { |
nothing calls this directly
no test coverage detected