mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 09:43:13 +08:00
Updated to latest doctrine versions, solving deprecations
This commit is contained in:
@@ -43,10 +43,8 @@ class VisitsTracker implements VisitsTrackerInterface
|
||||
|
||||
$visit = new Visit($shortUrl, $visitor);
|
||||
|
||||
/** @var ORM\EntityManager $em */
|
||||
$em = $this->em;
|
||||
$em->persist($visit);
|
||||
$em->flush($visit);
|
||||
$this->em->persist($visit);
|
||||
$this->em->flush();
|
||||
|
||||
$this->eventDispatcher->dispatch(new ShortUrlVisited($visit->getId()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user