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