/**
  * Filter the query by a related Solicitud object
  *
  * @param     Solicitud $solicitud  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    Solicitud_estadoQuery The current query, for fluid interface
  */
 public function filterBySolicitud($solicitud, $comparison = null)
 {
     if ($solicitud instanceof Solicitud) {
         return $this->addUsingAlias(Solicitud_estadoPeer::ID, $solicitud->getId_estado(), $comparison);
     } elseif ($solicitud instanceof PropelCollection) {
         return $this->useSolicitudQuery()->filterByPrimaryKeys($solicitud->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySolicitud() only accepts arguments of type Solicitud or PropelCollection');
     }
 }