Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(graphql): check inheritance in ResolverProvider #6314

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

jotwea
Copy link
Contributor

@jotwea jotwea commented Apr 15, 2024

Q A
Branch 3.2
Tickets -
License MIT
Doc PR -

With the new ResolverProvider some cases with inheritance are broken in our project. It was not a big deal to find out that ItemResolverFactory also checked if the resolver provided a subclass of the resourceClass. So I added this also to the ResolverProvider and everything works like a charm. I am not sure if it should also be extended in ReadProvider - there is similar code, but I had no problem with that. Thx for your advice.

@soyuka
Copy link
Member

soyuka commented Apr 15, 2024

nice catch, can you run the php-cs-fixer?

@soyuka soyuka merged commit 50c738c into api-platform:3.2 Apr 18, 2024
52 of 53 checks passed
@soyuka
Copy link
Member

soyuka commented Apr 18, 2024

thanks @jotwea !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants