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,
            )
        );
    }
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,
            )
        );
    }
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 , ) ) ; }
List action. Returns the records data in JSON format. This action is the target
of the dataTables plugin's ajax request for obtaining server-side data.

@param Request $request the current request
@return Array An array of template parameters. These include:
* `entities`: the PropelCollection or array of entities returned by the Propel query
* `total_count`: the total number of records (before any filters are applied)
* `filtered_count`: the number of records after filters are applied
@uses getLimit()
List action . Returns the records data in JSON format . This action is the target of the dataTables plugin s ajax request for obtaining server - side data .