コード例 #1
0
ファイル: GameLinks.php プロジェクト: nirkbirk/site
 /**
  * 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;
 }