MCPcopy
hub / github.com/pocketbase/pocketbase / SetCollectionRef

Method SetCollectionRef

core/mfa_model.go:82–84  ·  view source on GitHub ↗

SetCollectionRef updates the "collectionRef" record field value.

(collectionId string)

Source from the content-addressed store, hash-verified

80
81// SetCollectionRef updates the "collectionRef" record field value.
82func (m *MFA) SetCollectionRef(collectionId string) {
83 m.Set("collectionRef", collectionId)
84}
85
86// RecordRef returns the "recordRef" record field value.
87func (m *MFA) RecordRef() string {

Callers 8

TestMFACollectionRefFunction · 0.95
TestMFAPreValidateFunction · 0.95
TestMFAValidateHookFunction · 0.95
checkMFAFunction · 0.95
StubMFARecordsFunction · 0.95

Calls 1

SetMethod · 0.65

Tested by 6

TestMFACollectionRefFunction · 0.76
TestMFAPreValidateFunction · 0.76
TestMFAValidateHookFunction · 0.76