<commit_before><?php

namespace Infocorp\Bundle\TeamBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\DataGrid\ListMapper;
use Sonata\AdminBundle\DataGrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

class AthleteAdmin extends Admin
{
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
            ->add('name', null, array('label' => 'Nome'))
            ->add('rga', null, array('label' => 'RGA'))
            ->add('team', 'sonata_type_model_list', array(
                'label' => 'Equipe',
            ))
        ;
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ->addIdentifier('name')
            ->addIdentifier('rga')
            ->addIdentifier('team')
        ;
    }
}<commit_msg>Adiciona campos de filtro para AthleteAdmin<commit_after><?php

namespace Infocorp\Bundle\TeamBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\DataGrid\ListMapper;
use Sonata\AdminBundle\DataGrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

class AthleteAdmin extends Admin
{
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
            ->add('name', null, array('label' => 'Nome'))
            ->add('rga', null, array('label' => 'RGA'))
            ->add('team', 'sonata_type_model_list', array(
                'label' => 'Equipe',
            ))
        ;
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        $datagridMapper
            ->add('name')
            ->add('rga')
            ->add('team')
        ;
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ->addIdentifier('name')
            ->addIdentifier('rga')
            ->addIdentifier('team')
        ;
    }
}
{'fraction_non_alphanumeric': 0.12462612163509472, 'fraction_numerical': 0.0, 'mean_word_length': 2.466321243523316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1786483', 'n_tokens_mistral': 587, 'n_tokens_neox': 582, 'n_words': 99}