public function setCurrent(Geolocator $geolocator = null)
    {
        $currentGeolocator = $this->getCurrent();
        if ($currentGeolocator !== $geolocator) {
            if ($currentGeolocator !== null) {
                $currentGeolocator->setIsActive(false);
                if ($currentGeolocator->getGeolocatorID() !== null) {
                    $this->em->flush($currentGeolocator);
                }
            }
            if ($geolocator !== null) {
                $geolocator->setIsActive(true);
                if ($geolocator->getGeolocatorID() !== null) {
                    $this->em->flush($geolocator);
                }
            }
        }
    }