예제 #1
0
파일: Comment.php 프로젝트: OneTimeCZ/DofE
 /**
  * Declares an association between this object and a ChildArticle object.
  *
  * @param  ChildArticle $v
  * @return $this|\Models\Comment The current object (for fluent API support)
  * @throws PropelException
  */
 public function setArticle(ChildArticle $v = null)
 {
     if ($v === null) {
         $this->setIdArticle(NULL);
     } else {
         $this->setIdArticle($v->getId());
     }
     $this->aArticle = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildArticle object, it will not be re-added.
     if ($v !== null) {
         $v->addComment($this);
     }
     return $this;
 }