Exemple #1
0
 /**
  * Declares an association between this object and a ChildGameLinkTypes object.
  *
  * @param  ChildGameLinkTypes $v
  * @return $this|\GameLinks The current object (for fluent API support)
  * @throws PropelException
  */
 public function setGameLinkTypes(ChildGameLinkTypes $v = null)
 {
     if ($v === null) {
         $this->setGameLinkTypeId(NULL);
     } else {
         $this->setGameLinkTypeId($v->getId());
     }
     $this->aGameLinkTypes = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildGameLinkTypes object, it will not be re-added.
     if ($v !== null) {
         $v->addGameLinks($this);
     }
     return $this;
 }
Exemple #2
0
 /**
  * Filter the query by a related \GameLinkTypes object
  *
  * @param \GameLinkTypes|ObjectCollection $gameLinkTypes 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 ChildGameLinksQuery The current query, for fluid interface
  */
 public function filterByGameLinkTypes($gameLinkTypes, $comparison = null)
 {
     if ($gameLinkTypes instanceof \GameLinkTypes) {
         return $this->addUsingAlias(GameLinksTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkTypes->getId(), $comparison);
     } elseif ($gameLinkTypes instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GameLinksTableMap::COL_GAME_LINK_TYPE_ID, $gameLinkTypes->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGameLinkTypes() only accepts arguments of type \\GameLinkTypes or Collection');
     }
 }
Exemple #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildGameLinkTypes $gameLinkTypes Object to remove from the list of results
  *
  * @return $this|ChildGameLinkTypesQuery The current query, for fluid interface
  */
 public function prune($gameLinkTypes = null)
 {
     if ($gameLinkTypes) {
         $this->addUsingAlias(GameLinkTypesTableMap::COL_ID, $gameLinkTypes->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }