/**
  * Filter the query by a related Expediente object
  *
  * @param   Expediente|PropelObjectCollection $expediente  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 ProveedorclienteQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByExpediente($expediente, $comparison = null)
 {
     if ($expediente instanceof Expediente) {
         return $this->addUsingAlias(ProveedorclientePeer::IDPROVEEDORCLIENTE, $expediente->getIdconsignatarioembarcador(), $comparison);
     } elseif ($expediente instanceof PropelObjectCollection) {
         return $this->useExpedienteQuery()->filterByPrimaryKeys($expediente->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByExpediente() only accepts arguments of type Expediente or PropelCollection');
     }
 }