/** * Filter the query by a related \Haus23\Dtp\Model\Round object * * @param \Haus23\Dtp\Model\Round|ObjectCollection $round The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildMatchQuery The current query, for fluid interface */ public function filterByRound($round, $comparison = null) { if ($round instanceof \Haus23\Dtp\Model\Round) { return $this->addUsingAlias(MatchTableMap::COL_ROUND_ID, $round->getId(), $comparison); } elseif ($round instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(MatchTableMap::COL_ROUND_ID, $round->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRound() only accepts arguments of type \\Haus23\\Dtp\\Model\\Round or Collection'); } }