/**
  * Filter the query by a related \Jalle19\StatusManager\Database\InputError object
  *
  * @param \Jalle19\StatusManager\Database\InputError|ObjectCollection $inputError the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildInputQuery The current query, for fluid interface
  */
 public function filterByInputError($inputError, $comparison = null)
 {
     if ($inputError instanceof \Jalle19\StatusManager\Database\InputError) {
         return $this->addUsingAlias(InputTableMap::COL_UUID, $inputError->getInputUuid(), $comparison);
     } elseif ($inputError instanceof ObjectCollection) {
         return $this->useInputErrorQuery()->filterByPrimaryKeys($inputError->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByInputError() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\InputError or Collection');
     }
 }
 /**
  * @param ChildInputError $inputError The ChildInputError object to add.
  */
 protected function doAddInputError(ChildInputError $inputError)
 {
     $this->collInputErrors[] = $inputError;
     $inputError->setInput($this);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildInputError $inputError Object to remove from the list of results
  *
  * @return $this|ChildInputErrorQuery The current query, for fluid interface
  */
 public function prune($inputError = null)
 {
     if ($inputError) {
         $this->addUsingAlias(InputErrorTableMap::COL_ID, $inputError->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * @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()]);
 }