AddEntities adds the "entities" edges to the Entity entity.
(e ...*Entity)
| 322 | |
| 323 | // AddEntities adds the "entities" edges to the Entity entity. |
| 324 | func (uu *UserUpdate) AddEntities(e ...*Entity) *UserUpdate { |
| 325 | ids := make([]int, len(e)) |
| 326 | for i := range e { |
| 327 | ids[i] = e[i].ID |
| 328 | } |
| 329 | return uu.AddEntityIDs(ids...) |
| 330 | } |
| 331 | |
| 332 | // AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs. |
| 333 | func (uu *UserUpdate) AddOauthGrantIDs(ids ...int) *UserUpdate { |
nothing calls this directly
no test coverage detected