/** * Declares an association between this object and a ChildGameLinkType object. * * @param ChildGameLinkType $v * @return $this|\GameLink The current object (for fluent API support) * @throws PropelException */ public function setGameLinkType(ChildGameLinkType $v = null) { if ($v === null) { $this->setGameLinkTypeId(NULL); } else { $this->setGameLinkTypeId($v->getId()); } $this->aGameLinkType = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildGameLinkType object, it will not be re-added. if ($v !== null) { $v->addGameLink($this); } return $this; }
/** * Filter the query by a related \GameLinkType object * * @param \GameLinkType|ObjectCollection $gameLinkType The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildGameLinkQuery The current query, for fluid interface */ public function filterByGameLinkType($gameLinkType, $comparison = null) { if ($gameLinkType instanceof \GameLinkType) { return $this->addUsingAlias(GameLinkTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkType->getId(), $comparison); } elseif ($gameLinkType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(GameLinkTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByGameLinkType() only accepts arguments of type \\GameLinkType or Collection'); } }
/** * Exclude object from result * * @param ChildGameLinkType $gameLinkType Object to remove from the list of results * * @return $this|ChildGameLinkTypeQuery The current query, for fluid interface */ public function prune($gameLinkType = null) { if ($gameLinkType) { $this->addUsingAlias(GameLinkTypeTableMap::COL_ID, $gameLinkType->getId(), Criteria::NOT_EQUAL); } return $this; }