示例#1
0
 /**
  * Filter the query by a related \ApostaAiApi\Models\Bet object
  *
  * @param \ApostaAiApi\Models\Bet|ObjectCollection $bet 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 filterByBet($bet, $comparison = null)
 {
     if ($bet instanceof \ApostaAiApi\Models\Bet) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $bet->getUserId(), $comparison);
     } elseif ($bet instanceof ObjectCollection) {
         return $this->useBetQuery()->filterByPrimaryKeys($bet->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByBet() only accepts arguments of type \\ApostaAiApi\\Models\\Bet or Collection');
     }
 }