Abhoryo/APYDataGridBundle — pull request #284 by stanislavprokopov (2012-10-19 14:44:10+00:00)
Title: RowAction route parameters mapping

Added a `setParametersMapping` method to `RowAction`.
This allows to map the mapped fields to correct route parameters, and doest require you to change existing route parameter names to work with the camelCase parameter names used by the grid.

Backwards compatibility break: no

In this example the `user.information.country` field will be mapped to the `countryId` route parameter.

## Example
```php
setSource($source);

// Specify route parameters for the edit action
$rowAction2 = new RowAction('Edit', 'route_to_edit');
$rowAction2->setRouteParameters(array('user.information.country', 'version' => 2));
$rowAction2->setParametersMapping(array('user.information.country' => 'countryId'));
$grid->addRowAction($rowAction2);
...
```

```php