Fix query.

This commit is contained in:
David Molineus
2017-10-18 16:48:16 +02:00
parent 28adc54d36
commit 7498aef141

View File

@@ -56,7 +56,7 @@ final class VectorsLabelRenderer extends AbstractLabelRenderer
public function render(array $row, string $label, Translator $translator): string public function render(array $row, string $label, Translator $translator): string
{ {
$repository = $this->repositoryManager->getRepository(VectorModel::class); $repository = $this->repositoryManager->getRepository(VectorModel::class);
$count = $repository->countBy(['pid'], [$row['id']]); $count = $repository->countBy(['pid=?'], [$row['id']]);
$label .= sprintf( $label .= sprintf(
'<span class="tl_gray"> (%s %s)</span>', '<span class="tl_gray"> (%s %s)</span>',
$count, $count,