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