/**
  * Filter the query by a related \EventInterest object
  *
  * @param \EventInterest|ObjectCollection $eventInterest  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 filterByInterest($eventInterest, $comparison = null)
 {
     if ($eventInterest instanceof \EventInterest) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $eventInterest->getInterestedUserId(), $comparison);
     } elseif ($eventInterest instanceof ObjectCollection) {
         return $this->useInterestQuery()->filterByPrimaryKeys($eventInterest->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByInterest() only accepts arguments of type \\EventInterest or Collection');
     }
 }