/** * Declares an association between this object and a ChildInseeGeoDepartment object. * * @param ChildInseeGeoDepartment $v * @return \INSEEGeo\Model\InseeGeoMunicipality The current object (for fluent API support) * @throws PropelException */ public function setInseeGeoDepartment(ChildInseeGeoDepartment $v = null) { if ($v === null) { $this->setDepartmentId(NULL); } else { $this->setDepartmentId($v->getId()); } $this->aInseeGeoDepartment = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildInseeGeoDepartment object, it will not be re-added. if ($v !== null) { $v->addInseeGeoMunicipality($this); } return $this; }