예제 #1
0
 /**
  * @param ChildGameLink $gameLink The ChildGameLink object to add.
  */
 protected function doAddGameLink(ChildGameLink $gameLink)
 {
     $this->collGameLinks[] = $gameLink;
     $gameLink->setGame($this);
 }
예제 #2
0
 /**
  * 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');
     }
 }
예제 #3
0
 /**
  * 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;
 }