/** * Declares an association between this object and a LinkCategory object. * * @param LinkCategory $v * @return Link The current object (for fluent API support) * @throws PropelException */ public function setLinkCategory(LinkCategory $v = null) { if ($v === null) { $this->setLinkCategoryId(NULL); } else { $this->setLinkCategoryId($v->getId()); } $this->aLinkCategory = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the LinkCategory object, it will not be re-added. if ($v !== null) { $v->addLink($this); } return $this; }