MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / SetPrimaryEntity

Method SetPrimaryEntity

ent/file_create.go:93–96  ·  view source on GitHub ↗

SetPrimaryEntity sets the "primary_entity" field.

(i int)

Source from the content-addressed store, hash-verified

91
92// SetPrimaryEntity sets the "primary_entity" field.
93func (fc *FileCreate) SetPrimaryEntity(i int) *FileCreate {
94 fc.mutation.SetPrimaryEntity(i)
95 return fc
96}
97
98// SetNillablePrimaryEntity sets the "primary_entity" field if the given value is not nil.
99func (fc *FileCreate) SetNillablePrimaryEntity(i *int) *FileCreate {

Callers 1

Calls 1

SetPrimaryEntityMethod · 0.65

Tested by

no test coverage detected