/**
  * Filter the query by a related SystemEventInstanceMessage object
  *
  * @param   SystemEventInstanceMessage|PropelObjectCollection $systemEventInstanceMessage  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   SystemEventInstanceQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterBySystemEventInstanceMessage($systemEventInstanceMessage, $comparison = null)
 {
     if ($systemEventInstanceMessage instanceof SystemEventInstanceMessage) {
         return $this->addUsingAlias(SystemEventInstancePeer::ID, $systemEventInstanceMessage->getSystemEventInstanceId(), $comparison);
     } elseif ($systemEventInstanceMessage instanceof PropelObjectCollection) {
         return $this->useSystemEventInstanceMessageQuery()->filterByPrimaryKeys($systemEventInstanceMessage->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySystemEventInstanceMessage() only accepts arguments of type SystemEventInstanceMessage or PropelCollection');
     }
 }