sensio/SensioFrameworkExtraBundle — pull request #114 by lennerd (2012-04-20 00:28:08+00:00)
Title: Improvements of the DoctrineParamConverter

Based on the discussions in https://github.com/sensio/SensioFrameworkExtraBundle/pull/91 and https://github.com/sensio/SensioFrameworkExtraBundle/pull/42 I worked on improvements for the guessing process of the DoctrineParamConverter.

I thought about fife ways using the converter:

1. A simple `id` request attribute, eg. finding a user by it's id.
2. Fields and associations of the entity, checked by the associated metadata, eg. `group` for finding a user group.
3. `Id` with a prefix based on the given name of the action parameter, eg. `user_id`
4. Fields and associations with a prefix like in version 3, eg.: `user_group`

Further more it is now able to use reflection when a custom repository method is defined.

E.g.:

```php