/** * Filter the query by a related Articulovariante object * * @param Articulovariante|PropelObjectCollection $articulovariante the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ArticuloQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByArticulovariante($articulovariante, $comparison = null) { if ($articulovariante instanceof Articulovariante) { return $this->addUsingAlias(ArticuloPeer::IDARTICULO, $articulovariante->getIdarticulo(), $comparison); } elseif ($articulovariante instanceof PropelObjectCollection) { return $this->useArticulovarianteQuery()->filterByPrimaryKeys($articulovariante->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByArticulovariante() only accepts arguments of type Articulovariante or PropelCollection'); } }