Add frontend module (Close #7).

This commit is contained in:
David Molineus
2015-01-09 23:20:07 +01:00
parent 47d27e9c4a
commit 91ccfa56f4
9 changed files with 222 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ class DefinitionMapper
*/
public function handle(\Model $model, LatLngBounds $bounds = null, $elementId = null)
{
$hash = $model->getTable() . '.' . $model->{$model->getPk()};
$hash = $model->getTable() . '.' . $model->{$model->getPk()} . ($elementId ? ('.' . $elementId) : '');
if (isset($this->mapped[$hash])) {
return $this->mapped[$hash];