sonata-project/SonataAdminBundle — pull request #696 by Romain-Geissler (2012-04-19 19:25:51+00:00)
Title: Submodel filters

This is a supporting commit that will allow to add filters that do not apply to the current model class but to any submodel.

Lets say i have a model ``Person`` having a one-to-one association with a model ``Address`` and i need to filter out all people living in Paris : i currently have to write my own filter (with a callback for example). With this patch, i allow to filter cities like this :

```php
class PersonAdmin extends Admin{
protected function configureDatagridFilters(DatagridMapper $datagridMapper){
$datagridMapper
->add('id')
->add('firstName')
->add('lastName')
->add('address.city')
;
}
}
```

I'll eventually bring similar feature fo ``configureShowFields`` and ``configureListFields`` where it make sense. Currently only the edition mode has support for submodel management.