Skip to content

Commit 2946595

Browse files
committed
Revert "fix sort (need refacto)"
This reverts commit f80b1d7.
1 parent f80b1d7 commit 2946595

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

Controller/CrudController.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,21 +268,16 @@ protected function doIndex()
268268
{
269269
$entityClass = ltrim($this->getEntityClass(), '\\');
270270

271-
$queryBuilder = $this
271+
$query = $this
272272
->getContextRepository()
273-
->createContextQueryBuilder($entityClass);
274-
275-
foreach ($this->getFields()['join'] as $key => $field) {
276-
$queryBuilder
277-
->join('e.'.$field, $key);
278-
}
279-
280-
$query = $queryBuilder
273+
->createContextQueryBuilder($entityClass)
281274
->getQuery()
282275
->setHint(
283276
Query::HINT_CUSTOM_OUTPUT_WALKER,
284277
'Gedmo\Translatable\Query\TreeWalker\TranslationWalker'
285-
);
278+
)
279+
// ->getResult()
280+
;
286281

287282
return $this->renderIndex($query);
288283
}

Subscriber/KnpSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function setRequest($request)
1818
public static function getSubscribedEvents()
1919
{
2020
return array(
21-
'knp_pager.items' => array('items', 1)
21+
// 'knp_pager.items' => array('items', 1)
2222
);
2323
}
2424

0 commit comments

Comments
 (0)