private function checkVisits(Range $interval): void
	{
		foreach ($this->orm->trackingVisits->findCalculateDate($interval) as $date) {
			if ($date !== null) {
				$date = $date->setTime(0, 0, 0);
				$to = $date->modify('+23 hour');
				$to = $to->modify('+59 minute');
				$to = $to->modify('+59 second');

				$pages = $this->orm->tracking->findVisitsHours(new Range($date, $to), true);
				foreach ($pages as $row) {
					$trackingVisits = $this->orm->trackingVisits->getByKey(new \DateTime($row->datefield));
					if ($trackingVisits === null) {
						$trackingVisits = new TrackingVisits;
					}
					$trackingVisits->datefield = $row->datefield;
					$trackingVisits->visits = $row->visits;

					$this->orm->persistAndFlush($trackingVisits);
				}
			}
		}
		$this->orm->refreshAll(true);
	}