/**
  * Filter the query by a related \INSEEGeo\Model\InseeGeoMunicipality object
  *
  * @param \INSEEGeo\Model\InseeGeoMunicipality|ObjectCollection $inseeGeoMunicipality  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildInseeGeoDepartmentQuery The current query, for fluid interface
  */
 public function filterByInseeGeoMunicipality($inseeGeoMunicipality, $comparison = null)
 {
     if ($inseeGeoMunicipality instanceof \INSEEGeo\Model\InseeGeoMunicipality) {
         return $this->addUsingAlias(InseeGeoDepartmentTableMap::ID, $inseeGeoMunicipality->getDepartmentId(), $comparison);
     } elseif ($inseeGeoMunicipality instanceof ObjectCollection) {
         return $this->useInseeGeoMunicipalityQuery()->filterByPrimaryKeys($inseeGeoMunicipality->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByInseeGeoMunicipality() only accepts arguments of type \\INSEEGeo\\Model\\InseeGeoMunicipality or Collection');
     }
 }