AddUsers adds the "users" edges to the User entity.
(u ...*User)
| 136 | |
| 137 | // AddUsers adds the "users" edges to the User entity. |
| 138 | func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate { |
| 139 | ids := make([]int, len(u)) |
| 140 | for i := range u { |
| 141 | ids[i] = u[i].ID |
| 142 | } |
| 143 | return gc.AddUserIDs(ids...) |
| 144 | } |
| 145 | |
| 146 | // SetStoragePoliciesID sets the "storage_policies" edge to the StoragePolicy entity by ID. |
| 147 | func (gc *GroupCreate) SetStoragePoliciesID(id int) *GroupCreate { |
nothing calls this directly
no test coverage detected