/**
  * Filter the query by a related Artista object
  *
  * @param     Artista|PropelCollection $artista 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 filterByArtista($artista, $comparison = null)
 {
     if ($artista instanceof Artista) {
         return $this->addUsingAlias(ProductoPeer::IDARTISTA, $artista->getIdartista(), $comparison);
     } elseif ($artista instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ProductoPeer::IDARTISTA, $artista->toKeyValue('PrimaryKey', 'Idartista'), $comparison);
     } else {
         throw new PropelException('filterByArtista() only accepts arguments of type Artista or PropelCollection');
     }
 }