Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use new IriConverter with legacy ApiResource #5094

@louismariegaborit

Description

@louismariegaborit

We works on updating ApiPlatform to 2.7 with the metadata_backward_compatibility_layer flag to false.
We have an error Provider not found on operation "%s" when we call the function getResourceFromIri on a legacy ApiResource that have a custom DataProvider.

Shouldn't the new IriConverter be able to call either the CallableProvider or the ChainItemDataProvider in 2.7 as a bridge to use legacy ApiResource is still available without the backward compatibility layer?

It's a problem when we add an iri of this resource in a payload of a parent resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions