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