AddEntities adds the "entities" edges to the Entity entity.
(e ...*Entity)
| 1341 | |
| 1342 | // AddEntities adds the "entities" edges to the Entity entity. |
| 1343 | func (uuo *UserUpdateOne) AddEntities(e ...*Entity) *UserUpdateOne { |
| 1344 | ids := make([]int, len(e)) |
| 1345 | for i := range e { |
| 1346 | ids[i] = e[i].ID |
| 1347 | } |
| 1348 | return uuo.AddEntityIDs(ids...) |
| 1349 | } |
| 1350 | |
| 1351 | // AddOauthGrantIDs adds the "oauth_grants" edge to the OAuthGrant entity by IDs. |
| 1352 | func (uuo *UserUpdateOne) AddOauthGrantIDs(ids ...int) *UserUpdateOne { |
nothing calls this directly
no test coverage detected