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