Closed
Description
I just create my own argument resolver for the user entity that is used in one of our projects and did this like explained in the official documentation.
The class seem to work well, but Doctrine was faster to put one of his resolvers in between, so I only got an exception: Unable to guess how to get a Doctrine instance from the request information for parameter "user".
I found out that some configuration of the FrameworkExtraBundle was needed:
# app/config/config.yml
sensio_framework_extra:
request:
converters: true
auto_convert: false
This can be found in the ParamConverter documentation, but a hint in the upper docs would be nice for upcoming developers. 😉