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