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