/** * Filter the query by a related \RatingHeader object * * @param \RatingHeader|ObjectCollection $ratingHeader the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildGameQuery The current query, for fluid interface */ public function filterByRatingHeader($ratingHeader, $comparison = null) { if ($ratingHeader instanceof \RatingHeader) { return $this->addUsingAlias(GameTableMap::COL_ID, $ratingHeader->getGameId(), $comparison); } elseif ($ratingHeader instanceof ObjectCollection) { return $this->useRatingHeaderQuery()->filterByPrimaryKeys($ratingHeader->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRatingHeader() only accepts arguments of type \\RatingHeader or Collection'); } }