/**
  * @param PersistInputErrorEvent $event
  */
 public function onInputError(PersistInputErrorEvent $event)
 {
     $input = $event->getInput();
     $cumulativeErrors = $event->getCumulativeErrors();
     $inputError = new InputError();
     $inputError->setInput($input);
     $inputError->setFromInputErrorCumulative($cumulativeErrors);
     $inputError->save();
     $this->logger->debug('Persisted input errors (instance: {instanceName}, input: {friendlyName})', ['instanceName' => $input->getInstanceName(), 'friendlyName' => $input->getFriendlyName()]);
 }