protected function getFiltersType()
    {
        // var_dump($this->get('request')->query->all());exit;
        $form = $this->get('form.factory')->createNamed('filters', 'form', null, array(
            'action'          => $this->generateUrl($this->getRoutePrefix(), array(
                'sort'  => $this->get('request')->get('sort'),
                'order' => $this->get('request')->get('order'),
            )),
            'method'          => 'GET',
            'csrf_protection' => false,
            'attr'            => array(
                'class'    => 'form-inline',
            ),
        ));

        return $form;
    }