/** * Filter the query by a related Articulovariante object * * @param Articulovariante|PropelObjectCollection $articulovariante The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ArticulovariantereordenQuery 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(ArticulovariantereordenPeer::IDARTICULOVARIANTE, $articulovariante->getIdarticulovariante(), $comparison); } elseif ($articulovariante instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ArticulovariantereordenPeer::IDARTICULOVARIANTE, $articulovariante->toKeyValue('PrimaryKey', 'Idarticulovariante'), $comparison); } else { throw new PropelException('filterByArticulovariante() only accepts arguments of type Articulovariante or PropelCollection'); } }