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

Method SetNillableFileID

ent/share_update.go:586–591  ·  view source on GitHub ↗

SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil.

(id *int)

Source from the content-addressed store, hash-verified

584
585// SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil.
586func (suo *ShareUpdateOne) SetNillableFileID(id *int) *ShareUpdateOne {
587 if id != nil {
588 suo = suo.SetFileID(*id)
589 }
590 return suo
591}
592
593// SetFile sets the "file" edge to the File entity.
594func (suo *ShareUpdateOne) SetFile(f *File) *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected