/**
  * Filter the query by a related Ciudad object
  *
  * @param     Ciudad $ciudad  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    ProvinciaQuery The current query, for fluid interface
  */
 public function filterByCiudad($ciudad, $comparison = null)
 {
     if ($ciudad instanceof Ciudad) {
         return $this->addUsingAlias(ProvinciaPeer::IDPROVINCIA, $ciudad->getIdProvincia(), $comparison);
     } elseif ($ciudad instanceof PropelCollection) {
         return $this->useCiudadQuery()->filterByPrimaryKeys($ciudad->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCiudad() only accepts arguments of type Ciudad or PropelCollection');
     }
 }