public function listAction(Request $request)
    {
        $manager = $this->getEntityManager();

        $total_count = $manager->getTotalCount($request);

        $filtered_count = $manager->getFilteredCount($request);

        $entities = $manager->getEntities($request);

        return array_merge(
            $this->getExtraTemplateParameters($request),
            array(
                'total_count' => $total_count,
                'filtered_count' => $filtered_count,
                'entities' => $entities,
            )
        );
    }