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