/** * 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; }