AddEntities adds the "entities" edges to the Entity entity.
(e ...*Entity)
| 277 | |
| 278 | // AddEntities adds the "entities" edges to the Entity entity. |
| 279 | func (uc *UserCreate) AddEntities(e ...*Entity) *UserCreate { |
| 280 | ids := make([]int, len(e)) |
| 281 | for i := range e { |
| 282 | ids[i] = e[i].ID |
| 283 | } |
| 284 | return uc.AddEntityIDs(ids...) |
| 285 | } |
| 286 | |
| 287 | // AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs. |
| 288 | func (uc *UserCreate) AddOauthGrantIDs(ids ...int) *UserCreate { |
nothing calls this directly
no test coverage detected