/**
  * Exclude object from result
  *
  * @param     Genero $genero Object to remove from the list of results
  *
  * @return    GeneroQuery The current query, for fluid interface
  */
 public function prune($genero = null)
 {
     if ($genero) {
         $this->addUsingAlias(GeneroPeer::IDGENERO, $genero->getIdgenero(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related Genero object
  *
  * @param     Genero|PropelCollection $genero The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    ProductoQuery The current query, for fluid interface
  */
 public function filterByGenero($genero, $comparison = null)
 {
     if ($genero instanceof Genero) {
         return $this->addUsingAlias(ProductoPeer::IDGENERO, $genero->getIdgenero(), $comparison);
     } elseif ($genero instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ProductoPeer::IDGENERO, $genero->toKeyValue('PrimaryKey', 'Idgenero'), $comparison);
     } else {
         throw new PropelException('filterByGenero() only accepts arguments of type Genero or PropelCollection');
     }
 }
 /**
  * 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;
 }