/**
  * 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');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildInseeGeoMunicipality $inseeGeoMunicipality Object to remove from the list of results
  *
  * @return ChildInseeGeoMunicipalityQuery The current query, for fluid interface
  */
 public function prune($inseeGeoMunicipality = null)
 {
     if ($inseeGeoMunicipality) {
         $this->addUsingAlias(InseeGeoMunicipalityTableMap::ID, $inseeGeoMunicipality->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \INSEEGeo\Model\InseeGeoMunicipality object
  *
  * @param \INSEEGeo\Model\InseeGeoMunicipality|ObjectCollection $inseeGeoMunicipality The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildInseeGeoMunicipalityI18nQuery The current query, for fluid interface
  */
 public function filterByInseeGeoMunicipality($inseeGeoMunicipality, $comparison = null)
 {
     if ($inseeGeoMunicipality instanceof \INSEEGeo\Model\InseeGeoMunicipality) {
         return $this->addUsingAlias(InseeGeoMunicipalityI18nTableMap::ID, $inseeGeoMunicipality->getId(), $comparison);
     } elseif ($inseeGeoMunicipality instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(InseeGeoMunicipalityI18nTableMap::ID, $inseeGeoMunicipality->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByInseeGeoMunicipality() only accepts arguments of type \\INSEEGeo\\Model\\InseeGeoMunicipality or Collection');
     }
 }
 /**
  * Declares an association between this object and a ChildInseeGeoMunicipality object.
  *
  * @param                  ChildInseeGeoMunicipality $v
  * @return                 \INSEEGeo\Model\InseeGeoMunicipalityI18n The current object (for fluent API support)
  * @throws PropelException
  */
 public function setInseeGeoMunicipality(ChildInseeGeoMunicipality $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aInseeGeoMunicipality = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildInseeGeoMunicipality object, it will not be re-added.
     if ($v !== null) {
         $v->addInseeGeoMunicipalityI18n($this);
     }
     return $this;
 }