/**
  * Filter the query by a related \WineTasting\Model\User object
  *
  * @param \WineTasting\Model\User|ObjectCollection $user the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildWineQuery The current query, for fluid interface
  */
 public function filterByUserRelatedByVote2($user, $comparison = null)
 {
     if ($user instanceof \WineTasting\Model\User) {
         return $this->addUsingAlias(WineTableMap::COL_IDWINE, $user->getVote2(), $comparison);
     } elseif ($user instanceof ObjectCollection) {
         return $this->useUserRelatedByVote2Query()->filterByPrimaryKeys($user->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserRelatedByVote2() only accepts arguments of type \\WineTasting\\Model\\User or Collection');
     }
 }