Пример #1
0
 /**
  * Declares an association between this object and a Articulo object.
  *
  * @param                  Articulo $v
  * @return Articulovariante The current object (for fluent API support)
  * @throws PropelException
  */
 public function setArticulo(Articulo $v = null)
 {
     if ($v === null) {
         $this->setIdarticulo(NULL);
     } else {
         $this->setIdarticulo($v->getIdarticulo());
     }
     $this->aArticulo = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Articulo object, it will not be re-added.
     if ($v !== null) {
         $v->addArticulovariante($this);
     }
     return $this;
 }