public function dataLoader($page, $limit)
    {
        if ($limit > 0) {
            $this->getQueryBuilder()->setMaxResults($limit);
            $this->getQueryBuilder()->setFirstResult(($page - 1) * $limit);
        }

        $paginator = new Paginator($this->getQueryBuilder());
        $tableData = new SimpleTableData();
        $tableData->setTotalResults(count($paginator));
        $tableData->setResults(iterator_to_array($paginator->getIterator()));

        return $tableData;
    }