Exemple #1
0
 /**
  * Declares an association between this object and a ChildImage object.
  *
  * @param  ChildImage $v
  * @return $this|\Models\User 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->addUser($this);
     }
     return $this;
 }