protected function configureDatagridFilters(DatagridMapper $datagrid)
 {
     $datagrid->add('title');
     $datagrid->add('enabled');
     $datagrid->add('tags', array('filter_field_options' => array('expanded' => true, 'multiple' => true)));
     $datagrid->add('with_open_comments', array('template' => 'SonataBaseApplicationBundle:CRUD:filter_callback.twig.html', 'type' => 'callback', 'filter_options' => array('filter' => array($this, 'getWithOpenCommentFilter'), 'field' => array($this, 'getWithOpenCommentField'))));
 }
 protected function configureDatagridFilters(DatagridMapper $datagrid)
 {
     $datagrid->add('name');
     $datagrid->add('email');
 }