/** * @param ChildGameLink $gameLink The ChildGameLink object to add. */ protected function doAddGameLink(ChildGameLink $gameLink) { $this->collGameLinks[] = $gameLink; $gameLink->setGame($this); }
/** * Filter the query by a related \GameLink object * * @param \GameLink|ObjectCollection $gameLink 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 filterByGameLink($gameLink, $comparison = null) { if ($gameLink instanceof \GameLink) { return $this->addUsingAlias(GameTableMap::COL_ID, $gameLink->getGameId(), $comparison); } elseif ($gameLink instanceof ObjectCollection) { return $this->useGameLinkQuery()->filterByPrimaryKeys($gameLink->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByGameLink() only accepts arguments of type \\GameLink or Collection'); } }
/** * Exclude object from result * * @param ChildGameLink $gameLink Object to remove from the list of results * * @return $this|ChildGameLinkQuery The current query, for fluid interface */ public function prune($gameLink = null) { if ($gameLink) { $this->addUsingAlias(GameLinkTableMap::COL_ID, $gameLink->getId(), Criteria::NOT_EQUAL); } return $this; }