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