$model->errors->get_raw_errors(); # array( # "name" => array("can't be blank"), # "state" => array("is the wrong length (should be 2 chars)", # )
public function get_raw_errors() { return $this->errors; }
/** * Returns the exception's "errors" property/attribute * * @param boolean $as_array Whether to return the errors as an array or not * @access public * @return array */ public function getErrors($as_array = false) { if ($as_array) { if (!is_null($this->errors)) { $errors = $this->errors->get_raw_errors(); } else { $errors = array(); } } else { $errors = $this->errors; } return $errors; }