protected function getFlattenedValidationErrorMessage()
    {
        $outputMessage = 'Validation failed while trying to call ' . get_class($this) . '->' . $this->actionMethodName . '().' . PHP_EOL;
        $logMessage = $outputMessage;

        foreach ($this->arguments->getValidationResults()->getFlattenedErrors() as $propertyPath => $errors) {
            foreach ($errors as $error) {
                $logMessage .= 'Error for ' . $propertyPath . ':  ' . $error->render() . PHP_EOL;
            }
        }
        $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));

        return $outputMessage;
    }
protected function getFlattenedValidationErrorMessage()
    {
        $outputMessage = 'Validation failed while trying to call ' . get_class($this) . '->' . $this->actionMethodName . '().' . PHP_EOL;
        $logMessage = $outputMessage;

        foreach ($this->arguments->getValidationResults()->getFlattenedErrors() as $propertyPath => $errors) {
            foreach ($errors as $error) {
                $logMessage .= 'Error for ' . $propertyPath . ':  ' . $error->render() . PHP_EOL;
            }
        }
        $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));

        return $outputMessage;
    }
protected function getFlattenedValidationErrorMessage ( ) { $ outputMessage = 'Validation failed while trying to call ' . get_class ( $ this ) . '->' . $ this -> actionMethodName . '().' . PHP_EOL ; $ logMessage = $ outputMessage ; foreach ( $ this -> arguments -> getValidationResults ( ) -> getFlattenedErrors ( ) as $ propertyPath => $ errors ) { foreach ( $ errors as $ error ) { $ logMessage .= 'Error for ' . $ propertyPath . ':  ' . $ error -> render ( ) . PHP_EOL ; } } $ this -> logger -> error ( $ logMessage , LogEnvironment :: fromMethodName ( __METHOD__ ) ) ; return $ outputMessage ; }
Returns a string containing all validation errors separated by PHP_EOL.

@return string
Returns a string containing all validation errors separated by PHP_EOL .