Skip to content

Commit

Permalink
Revert "fix sort (need refacto)"
Browse files Browse the repository at this point in the history
This reverts commit f80b1d7.
  • Loading branch information
gmanen committed Jun 4, 2014
1 parent f80b1d7 commit 2946595
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions Controller/CrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Subscriber/KnpSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}

Expand Down

0 comments on commit 2946595

Please sign in to comment.