From 6444c00121635465036abe2ef20be499b9579df5 Mon Sep 17 00:00:00 2001 From: Kristof Van Roy Date: Wed, 19 Apr 2017 14:34:26 +0200 Subject: [PATCH] Fixed The Paginator does not support Queries which only yield ScalarResults. --- Grid/Source/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/Source/Entity.php b/Grid/Source/Entity.php index e7df1df2..d5858eb6 100644 --- a/Grid/Source/Entity.php +++ b/Grid/Source/Entity.php @@ -514,7 +514,7 @@ public function execute($columns, $page = 0, $limit = 0, $maxResults = null, $gr foreach ($this->hints as $hintKey => $hintValue) { $query->setHint($hintKey, $hintValue); } - $items = new Paginator($query, $hasJoin); + $items = $query->getResult(); $repository = $this->manager->getRepository($this->entityName);