/** * Exclude object from result * * @param ChildGameLinks $gameLinks Object to remove from the list of results * * @return $this|ChildGameLinksQuery The current query, for fluid interface */ public function prune($gameLinks = null) { if ($gameLinks) { $this->addUsingAlias(GameLinksTableMap::COL_ID, $gameLinks->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildGameLinks $gameLinks The ChildGameLinks object to add. */ protected function doAddGameLinks(ChildGameLinks $gameLinks) { $this->collGameLinkss[] = $gameLinks; $gameLinks->setGameLinkTypes($this); }
/** * Filter the query by a related \GameLinks object * * @param \GameLinks|ObjectCollection $gameLinks 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 filterByGameLinks($gameLinks, $comparison = null) { if ($gameLinks instanceof \GameLinks) { return $this->addUsingAlias(GamesTableMap::COL_ID, $gameLinks->getGameId(), $comparison); } elseif ($gameLinks instanceof ObjectCollection) { return $this->useGameLinksQuery()->filterByPrimaryKeys($gameLinks->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByGameLinks() only accepts arguments of type \\GameLinks or Collection'); } }