/** * Filter the query by a related Pacientefacturacion object * * @param Pacientefacturacion|PropelObjectCollection $pacientefacturacion The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return FacturaQuery 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(FacturaPeer::IDDATOSFACTURACION, $pacientefacturacion->getIdpacientefacturacion(), $comparison); } elseif ($pacientefacturacion instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(FacturaPeer::IDDATOSFACTURACION, $pacientefacturacion->toKeyValue('PrimaryKey', 'Idpacientefacturacion'), $comparison); } else { throw new PropelException('filterByPacientefacturacion() only accepts arguments of type Pacientefacturacion or PropelCollection'); } }