diff --git a/Grid/Grid.php b/Grid/Grid.php index 0ae3c39..7122860 100644 --- a/Grid/Grid.php +++ b/Grid/Grid.php @@ -265,7 +265,7 @@ public function getRouteUrl() if ($this->routeforced != '') { return $this->routeforced; } else { - return $this->router->generate($this->request->get('_route')); + return $currentUrl = $this->request->getUri(); } } @@ -311,16 +311,16 @@ public function getSubGrid() { return $this->subGrid; } - - /** - * @return \Doctrine\ORM\QueryBuilder - */ - public function getQueryBuilder() - { - return $this->qb; - } - - + + /** + * @return \Doctrine\ORM\QueryBuilder + */ + public function getQueryBuilder() + { + return $this->qb; + } + + public function render() {