/**
  * Adds nested errors to the current errors
  *
  * @param string $class
  * @param string $propertyPath
  * @param string $nestedClass
  */
 protected function addNestedErrors($class, $propertyPath, $nestedClass)
 {
     $errors = $this->transformerRegistry->getErrors($nestedClass);
     if (!count($errors)) {
         return;
     }
     if (!isset($this->errors[$class][$propertyPath])) {
         $this->errors[$class][$propertyPath] = [];
     }
     foreach ($errors as $fieldErrors) {
         $this->errors[$class][$propertyPath] = array_merge($this->errors[$class][$propertyPath], $fieldErrors);
     }
 }
 /**
  * Returns an array of errors for each columns
  *
  * @return array
  */
 protected function getTransformerErrors()
 {
     return $this->transformer->getErrors($this->class);
 }