/** * Exclude object from result * * @param ChildGamePlatform $gamePlatform Object to remove from the list of results * * @return $this|ChildGamePlatformQuery The current query, for fluid interface */ public function prune($gamePlatform = null) { if ($gamePlatform) { $this->addCond('pruneCond0', $this->getAliasedColName(GamePlatformTableMap::COL_GAME_ID), $gamePlatform->getGameId(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(GamePlatformTableMap::COL_PLATFORM_ID), $gamePlatform->getPlatformId(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related \GamePlatform object * * @param \GamePlatform|ObjectCollection $gamePlatform the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildPlatformQuery The current query, for fluid interface */ public function filterByGamePlatform($gamePlatform, $comparison = null) { if ($gamePlatform instanceof \GamePlatform) { return $this->addUsingAlias(PlatformTableMap::COL_ID, $gamePlatform->getPlatformId(), $comparison); } elseif ($gamePlatform instanceof ObjectCollection) { return $this->useGamePlatformQuery()->filterByPrimaryKeys($gamePlatform->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByGamePlatform() only accepts arguments of type \\GamePlatform or Collection'); } }