コード例 #1
0
 /**
  * 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 filterByUserRelatedByVote1($user, $comparison = null)
 {
     if ($user instanceof \WineTasting\Model\User) {
         return $this->addUsingAlias(WineTableMap::COL_IDWINE, $user->getVote1(), $comparison);
     } elseif ($user instanceof ObjectCollection) {
         return $this->useUserRelatedByVote1Query()->filterByPrimaryKeys($user->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserRelatedByVote1() only accepts arguments of type \\WineTasting\\Model\\User or Collection');
     }
 }