Ejemplo n.º 1
0
 /**
  * Filter the query by a related Articulovariantereorden object
  *
  * @param   Articulovariantereorden|PropelObjectCollection $articulovariantereorden  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 ArticulovarianteQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByArticulovariantereorden($articulovariantereorden, $comparison = null)
 {
     if ($articulovariantereorden instanceof Articulovariantereorden) {
         return $this->addUsingAlias(ArticulovariantePeer::IDARTICULOVARIANTE, $articulovariantereorden->getIdarticulovariante(), $comparison);
     } elseif ($articulovariantereorden instanceof PropelObjectCollection) {
         return $this->useArticulovariantereordenQuery()->filterByPrimaryKeys($articulovariantereorden->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByArticulovariantereorden() only accepts arguments of type Articulovariantereorden or PropelCollection');
     }
 }