Esempio 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                 OrdencompraQuery 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(OrdencompraPeer::IDORDENCOMPRA, $ordencompradetalle->getIdordencompra(), $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');
     }
 }