public function getCommitErrors()
    {
        $errors = array();

        if ($this->_failed_commits) {
            foreach ($this->_failed_commits as $entity) {
                $errors[(string) $entity->getIdentifier()] = array_values($entity->getErrors()->toArray());
            }
        }

        return $errors;
    }
public function getCommitErrors()
    {
        $errors = array();

        if ($this->_failed_commits) {
            foreach ($this->_failed_commits as $entity) {
                $errors[(string) $entity->getIdentifier()] = array_values($entity->getErrors()->toArray());
            }
        }

        return $errors;
    }
public function getCommitErrors ( ) { $ errors = array ( ) ; if ( $ this -> _failed_commits ) { foreach ( $ this -> _failed_commits as $ entity ) { $ errors [ ( string ) $ entity -> getIdentifier ( ) ] = array_values ( $ entity -> getErrors ( ) -> toArray ( ) ) ; } } return $ errors ; }
Return an array of commit errors.

@return array
Return an array of commit errors .