diff --git a/Controller/CrudController.php b/Controller/CrudController.php index a8f4b42..b673f69 100644 --- a/Controller/CrudController.php +++ b/Controller/CrudController.php @@ -268,21 +268,16 @@ protected function doIndex() { $entityClass = ltrim($this->getEntityClass(), '\\'); - $queryBuilder = $this + $query = $this ->getContextRepository() - ->createContextQueryBuilder($entityClass); - - foreach ($this->getFields()['join'] as $key => $field) { - $queryBuilder - ->join('e.'.$field, $key); - } - - $query = $queryBuilder + ->createContextQueryBuilder($entityClass) ->getQuery() ->setHint( Query::HINT_CUSTOM_OUTPUT_WALKER, 'Gedmo\Translatable\Query\TreeWalker\TranslationWalker' - ); + ) + // ->getResult() + ; return $this->renderIndex($query); } diff --git a/Subscriber/KnpSubscriber.php b/Subscriber/KnpSubscriber.php index 9c1ce95..579603c 100644 --- a/Subscriber/KnpSubscriber.php +++ b/Subscriber/KnpSubscriber.php @@ -18,7 +18,7 @@ public function setRequest($request) public static function getSubscribedEvents() { return array( - 'knp_pager.items' => array('items', 1) + // 'knp_pager.items' => array('items', 1) ); }