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

Method SetCollectionRef

core/otp_model.go:76–78  ·  view source on GitHub ↗

SetCollectionRef updates the "collectionRef" record field value.

(collectionId string)

Source from the content-addressed store, hash-verified

74
75// SetCollectionRef updates the "collectionRef" record field value.
76func (m *OTP) SetCollectionRef(collectionId string) {
77 m.Set("collectionRef", collectionId)
78}
79
80// RecordRef returns the "recordRef" record field value.
81func (m *OTP) RecordRef() string {

Callers 12

TestOTPCollectionRefFunction · 0.95
TestOTPPreValidateFunction · 0.95
TestOTPValidateHookFunction · 0.95
superuserOTPCommandFunction · 0.95
TestRecordAuthWithOTPFunction · 0.95
recordRequestOTPFunction · 0.95
TestRecordRequestOTPFunction · 0.95
StubOTPRecordsFunction · 0.95
oauth2SubmitFunction · 0.45
initFunction · 0.45

Calls 1

SetMethod · 0.65

Tested by 7

TestOTPCollectionRefFunction · 0.76
TestOTPPreValidateFunction · 0.76
TestOTPValidateHookFunction · 0.76
TestRecordAuthWithOTPFunction · 0.76
TestRecordRequestOTPFunction · 0.76