traits/helpers/TraitValidationHelper.php
protected function processValidationError(&$obException)
    {
        $arFiledList = array_keys($obException->getFields());

        Result::setFalse(['field' => array_shift($arFiledList)])
            ->setMessage($obException->getMessage())
            ->setCode($obException->getCode());
    }
protected function processValidationError(&$obException)
    {
        $arFiledList = array_keys($obException->getFields());

        Result::setFalse(['field' => array_shift($arFiledList)])
            ->setMessage($obException->getMessage())
            ->setCode($obException->getCode());
    }
protected function processValidationError ( & $ obException ) { $ arFiledList = array_keys ( $ obException -> getFields ( ) ) ; Result :: setFalse ( [ 'field' => array_shift ( $ arFiledList ) ] ) -> setMessage ( $ obException -> getMessage ( ) ) -> setCode ( $ obException -> getCode ( ) ) ; }
Process validation error data
@param \October\Rain\Database\ModelException $obException
Process validation error data