public function hasFieldError($field)
    {
        foreach ((array)$this->errors as $err) {

            if ($err instanceof FieldValidationError) {
                $tfield = $err->getFieldResolved();
                if($tfield == $field)
                    return true;
            }
        }

        return false;
    }
public function hasFieldError($field)
    {
        foreach ((array)$this->errors as $err) {

            if ($err instanceof FieldValidationError) {
                $tfield = $err->getFieldResolved();
                if($tfield == $field)
                    return true;
            }
        }

        return false;
    }
public function hasFieldError ( $ field ) { foreach ( ( array ) $ this -> errors as $ err ) { if ( $ err instanceof FieldValidationError ) { $ tfield = $ err -> getFieldResolved ( ) ; if ( $ tfield == $ field ) return true ; } } return false ; }
Determines if an error has occurred for the supplied field already

@param $field Field name
@return boolean
Determines if an error has occurred for the supplied field already