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