Ejemplo n.º 1
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Player object
  *
  * @param \Haus23\Dtp\Model\Player|ObjectCollection $player  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildAccountQuery The current query, for fluid interface
  */
 public function filterByParticipations($player, $comparison = null)
 {
     if ($player instanceof \Haus23\Dtp\Model\Player) {
         return $this->addUsingAlias(AccountTableMap::COL_ID, $player->getAccountId(), $comparison);
     } elseif ($player instanceof ObjectCollection) {
         return $this->useParticipationsQuery()->filterByPrimaryKeys($player->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByParticipations() only accepts arguments of type \\Haus23\\Dtp\\Model\\Player or Collection');
     }
 }