public function getPagination($query)
    {
        $pagination = $this->paginator->paginate(
            $query,
            $this->pageFromQuery(),
            $this->getPageLimit()
        );

        return $pagination;
    }
public function getPagination($query)
    {
        $pagination = $this->paginator->paginate(
            $query,
            $this->pageFromQuery(),
            $this->getPageLimit()
        );

        return $pagination;
    }
public function getPagination ( $ query ) { $ pagination = $ this -> paginator -> paginate ( $ query , $ this -> pageFromQuery ( ) , $ this -> getPageLimit ( ) ) ; return $ pagination ; }
Returns the configured KNP Paginator instance.

@param  \Doctrine\ORM\Query $query The query

@return \Knp\Component\Pager\Pagination\PaginationInterface
Returns the configured KNP Paginator instance .