diff --git a/src/Backend/Renderer/Label/Layer/MarkersLabelRenderer.php b/src/Backend/Renderer/Label/Layer/MarkersLabelRenderer.php index d37519f..7a1e1f6 100644 --- a/src/Backend/Renderer/Label/Layer/MarkersLabelRenderer.php +++ b/src/Backend/Renderer/Label/Layer/MarkersLabelRenderer.php @@ -56,7 +56,7 @@ final class MarkersLabelRenderer extends AbstractLabelRenderer public function render(array $row, string $label, Translator $translator): string { $repository = $this->repositoryManager->getRepository(MarkerModel::class); - $count = $repository->countBy(['pid=?'], [$row['pid']]); + $count = $repository->countBy(['pid=?'], [$row['id']]); $label .= sprintf( ' (%s %s)', $count,