public function getErrors($name)
    {
        $errors = $this->getValidationErrors();

        if ($this->hasErrors($name)) {
            return $errors[$name];
        }

        return array();
    }
public function getErrors($name)
    {
        $errors = $this->getValidationErrors();

        if ($this->hasErrors($name)) {
            return $errors[$name];
        }

        return array();
    }
public function getErrors ( $ name ) { $ errors = $ this -> getValidationErrors ( ) ; if ( $ this -> hasErrors ( $ name ) ) { return $ errors [ $ name ] ; } return array ( ) ; }
Lists the errors on a precise field.
@param  string $name An attribute name
@return array
Lists the errors on a precise field .