MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableGroupUsers

Method SetNillableGroupUsers

ent/user_update.go:1228–1233  ·  view source on GitHub ↗

SetNillableGroupUsers sets the "group_users" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

1226
1227// SetNillableGroupUsers sets the "group_users" field if the given value is not nil.
1228func (uuo *UserUpdateOne) SetNillableGroupUsers(i *int) *UserUpdateOne {
1229 if i != nil {
1230 uuo.SetGroupUsers(*i)
1231 }
1232 return uuo
1233}
1234
1235// SetGroupID sets the "group" edge to the Group entity by ID.
1236func (uuo *UserUpdateOne) SetGroupID(id int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetGroupUsersMethod · 0.95

Tested by

no test coverage detected