Work on repository manager usage.

This commit is contained in:
David Molineus committed 2017-10-18 16:43:33 +02:00
1 parent a4192b4b1a
commit 451d13fe98
4 files changed
+49 -16

No files matched your search

+2 -1
View File
@@ -90,7 +90,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid
$this->mapProvider->handleAjaxRequest($this->getIdentifier());
if (TL_MODE === 'BE') {
$model = MapModel::findByPk($this->get('leaflet_map'));
$repository = $this->repositoryManager->getRepository(MapModel::class);
$model = $repository->find((int) $this->get('leaflet_map'));
$parameters = [
'title' => $this->get('headline'),
];