Esempio n. 1
0
 /**
  * Filter the query by a related \GamePlatforms object
  *
  * @param \GamePlatforms|ObjectCollection $gamePlatforms 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 filterByGamePlatforms($gamePlatforms, $comparison = null)
 {
     if ($gamePlatforms instanceof \GamePlatforms) {
         return $this->addUsingAlias(GamesTableMap::COL_ID, $gamePlatforms->getGameId(), $comparison);
     } elseif ($gamePlatforms instanceof ObjectCollection) {
         return $this->useGamePlatformsQuery()->filterByPrimaryKeys($gamePlatforms->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGamePlatforms() only accepts arguments of type \\GamePlatforms or Collection');
     }
 }
Esempio n. 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildGamePlatforms $gamePlatforms Object to remove from the list of results
  *
  * @return $this|ChildGamePlatformsQuery The current query, for fluid interface
  */
 public function prune($gamePlatforms = null)
 {
     if ($gamePlatforms) {
         $this->addCond('pruneCond0', $this->getAliasedColName(GamePlatformsTableMap::COL_GAME_ID), $gamePlatforms->getGameId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(GamePlatformsTableMap::COL_PLATFORM_ID), $gamePlatforms->getPlatformId(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
Esempio n. 3
0
 /**
  * @param ChildGamePlatforms $gamePlatforms The ChildGamePlatforms object to add.
  */
 protected function doAddGamePlatforms(ChildGamePlatforms $gamePlatforms)
 {
     $this->collGamePlatformss[] = $gamePlatforms;
     $gamePlatforms->setPlatforms($this);
 }