SearchLight.Callbacks.on_exceptionFunction

Automatically invoked callback when a model exception is triggered internally (ex type conversion exception)

  • accepts (model <: AbstractModel, ex::TypeConversionException)
  • returns model <: AbstractModel
source
SearchLight.Callbacks.on_findFunction

Automatically invoked when model data is retrieved from the DB (on find methods). It will be invoked for each field in the model

  • accepts (model <: AbstractModel, field_name::Symbol, value::Any)
  • returns model <: AbstractModel
source
SearchLight.Callbacks.on_saveFunction

Automatically invoked when the object is being peristed to the DB

  • accepts (model <: AbstractModel, field_name::Symbol, value::Any)
  • returns model <: AbstractModel
source