/** * Filter the query by a related \Haus23\Dtp\Model\Ruleset object * * @param \Haus23\Dtp\Model\Ruleset|ObjectCollection $ruleset 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 ChildChampionshipQuery The current query, for fluid interface */ public function filterByRuleset($ruleset, $comparison = null) { if ($ruleset instanceof \Haus23\Dtp\Model\Ruleset) { return $this->addUsingAlias(ChampionshipTableMap::COL_RULESET_ID, $ruleset->getId(), $comparison); } elseif ($ruleset instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ChampionshipTableMap::COL_RULESET_ID, $ruleset->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRuleset() only accepts arguments of type \\Haus23\\Dtp\\Model\\Ruleset or Collection'); } }