Exemple #1
0
 /**
  * Filter the query by a related Movimiento object
  *
  * @param   Movimiento|PropelObjectCollection $movimiento  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   ProveedorQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByMovimiento($movimiento, $comparison = null)
 {
     if ($movimiento instanceof Movimiento) {
         return $this->addUsingAlias(ProveedorPeer::ID, $movimiento->getProveedorId(), $comparison);
     } elseif ($movimiento instanceof PropelObjectCollection) {
         return $this->useMovimientoQuery()->filterByPrimaryKeys($movimiento->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByMovimiento() only accepts arguments of type Movimiento or PropelCollection');
     }
 }