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