Hi, I have this error when I try to save data with the model "Error", other models like "member" save fine, but this always return error. Someone to help? Error: Call to undefined method Error::save()
if (!$member->save()) {
foreach ($member->getMessages() as $message) {
$error = new Error();
$error->Message = $message->getMessage();
$error->Controller = $this->dispatcher->getControllerName();
$error->Action = $this->dispatcher->getActionName();
$error->save(); // here is the error
}
} else {
return json_encode($this->response);
exit;
}