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