/** * This field contains a serialized value which converts to an array, * the parent function will through an error since it's expecting * a string and wont't typecast or validate the data type. This * override is meant to avoid the escape functionality for this * specific field. * * @param $string * @return array|string */ protected function _escape($string) { return !is_array($string) ? parent::_escape($string) : $string; }