public function defaultAction()
    {
        $em = $this->getEntityManager();
        $pagerParams = ['itemsCountPerPage' => static::ITEMS_ON_PAGE, 'sort' => Application::getRequest()->getSort(),];
        $repository = $em->getRepository($this->entityName);

        $grid = new \Cmf\Component\Grid([
            'fields' => $this->getFieldsConfig(),
            'data' => $repository,
            'pager' => $pagerParams,
            'idField' => 'id',
            'actionLinks' => $this->getActionLinkConfig(),
        ]);

        return ['grid' => $grid];
    }