Updated VisitRepository::findUnlocatedVisits methods so that it paginates the amount of elements loaded in memory

This commit is contained in:
Alejandro Celaya
2019-02-22 19:31:03 +01:00
parent 08bd4f131c
commit 292937b962
7 changed files with 115 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ class VisitService implements VisitServiceInterface
$repo = $this->em->getRepository(Visit::class);
$results = $repo->findUnlocatedVisits();
foreach ($results as [$visit]) {
foreach ($results as $visit) {
try {
/** @var Location $location */
$location = $geolocateVisit($visit);