/** * Filter the query by a related \Haus23\Dtp\Model\Round object * * @param \Haus23\Dtp\Model\Round|ObjectCollection $round the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildChampionshipQuery The current query, for fluid interface */ public function filterByRound($round, $comparison = null) { if ($round instanceof \Haus23\Dtp\Model\Round) { return $this->addUsingAlias(ChampionshipTableMap::COL_ID, $round->getChampionshipId(), $comparison); } elseif ($round instanceof ObjectCollection) { return $this->useRoundQuery()->filterByPrimaryKeys($round->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRound() only accepts arguments of type \\Haus23\\Dtp\\Model\\Round or Collection'); } }