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