MCPcopy
hub / github.com/pocketbase/pocketbase / OnModelValidate

Method OnModelValidate

core/app.go:748–748  ·  view source on GitHub ↗

--------------------------------------------------------------- DB models event hooks --------------------------------------------------------------- OnModelValidate is triggered every time when a model is being validated (e.g. triggered by App.Validate() or App.Save()). For convenience, if you wan

(tags ...string)

Source from the content-addressed store, hash-verified

746 // then all event handlers registered via the created hook will be
747 // triggered and called only if their event data origin matches the tags.
748 OnModelValidate(tags ...string) *hook.TaggedHook[*ModelEvent]
749
750 // ---------------------------------------------------------------
751

Callers 6

ValidateWithContextMethod · 0.65
TestRecordModelEventSyncFunction · 0.65
TestValidateFunction · 0.65
TestValidateWithContextFunction · 0.65
NewTestAppWithConfigFunction · 0.65

Calls

no outgoing calls

Tested by 4

TestRecordModelEventSyncFunction · 0.52
TestValidateFunction · 0.52
TestValidateWithContextFunction · 0.52