Ejemplo n.º 1
0
 /**
  * Filter the query by a related Ordencompradetalle object
  *
  * @param   Ordencompradetalle|PropelObjectCollection $ordencompradetalle  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 filterByOrdencompradetalle($ordencompradetalle, $comparison = null)
 {
     if ($ordencompradetalle instanceof Ordencompradetalle) {
         return $this->addUsingAlias(ArticulovariantePeer::IDARTICULOVARIANTE, $ordencompradetalle->getIdarticulovariante(), $comparison);
     } elseif ($ordencompradetalle instanceof PropelObjectCollection) {
         return $this->useOrdencompradetalleQuery()->filterByPrimaryKeys($ordencompradetalle->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByOrdencompradetalle() only accepts arguments of type Ordencompradetalle or PropelCollection');
     }
 }