示例#1
0
 /**
  * Declares an association between this object and a Gasto object.
  *
  * @param                  Gasto $v
  * @return Cajachicadetalle The current object (for fluent API support)
  * @throws PropelException
  */
 public function setGasto(Gasto $v = null)
 {
     if ($v === null) {
         $this->setIdgasto(NULL);
     } else {
         $this->setIdgasto($v->getIdgasto());
     }
     $this->aGasto = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Gasto object, it will not be re-added.
     if ($v !== null) {
         $v->addCajachicadetalle($this);
     }
     return $this;
 }