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