sensio/SensioFrameworkExtraBundle — Issue #90: ParameterConverter should support setting the query attribute
Author: tarjei
Created: 2012-01-05 08:45:36+00:00
State: open

I got this problem because of a route like this::

/course/{id}/subject/{id}

function (Course $course, Subject $subject) {}

What I would like to be able to do is to define which attribute should be used for querying for these two items. If I try to use the code above now, I get an error.

Suggested fix:

Add an option to @ParamConverter so that you can override the attribute name from the route.