/**
  * Filter the query by a related \Event object
  *
  * @param \Event|ObjectCollection $event  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByEvent($event, $comparison = null)
 {
     if ($event instanceof \Event) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $event->getCreatorUserId(), $comparison);
     } elseif ($event instanceof ObjectCollection) {
         return $this->useEventQuery()->filterByPrimaryKeys($event->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByEvent() only accepts arguments of type \\Event or Collection');
     }
 }