Skip to content

Custom Argument Resolving gets interrupted by Doctrine #8589

Closed
@Sengorius

Description

@Sengorius

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. 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions