Hide virtual stops from trips.

This commit is contained in:
Kacper Donat 2020-01-25 17:19:02 +01:00
parent 0fc075663a
commit b23bf3ad84
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ class GenericTripRepository extends DatabaseRepository implements TripRepository
->createQueryBuilder()
->from(TripEntity::class, 't')
->join('t.stops', 'ts')
->join('ts.stop', 's')
->select('t', 'ts')
->where('t.id = :id')
->getQuery()

View File

@ -171,7 +171,8 @@ class ZtmGdanskDataUpdateSubscriber implements EventSubscriberInterface
'onDemand' => (bool)$stop['onDemand'],
'provider' => $provider,
]);
});
})
;
}
public function getTracks(ProviderEntity $provider, DataUpdateEvent $event, $stops = [])