-
-
Notifications
You must be signed in to change notification settings - Fork 900
LinksHandlerTrait : The class "App\Entity\EntityName" cannot be retrieved from "App\Entity\EntityName" #6059
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
Comments
Are you using the enum as identifier? this isn't supported may we see the whole resource or some more informations as this is not enough? |
@soyuka no. The entity has id autoincrement as the identifier. Only normal fields typed with enum (like in the example) have this problem. (I also have setters and getters defined as i know it impacts propertyResolver) It seems to occur only for graphql endpoint. I also did more tests by changing the column name from state to type and other non-common names), same problem. Thank you 👍 |
I see, can you provide a reproducer ? |
I created a repository for this purpose: You can find a test case in the readme Thank you |
This looks to be fixed by #6092 The tl;dr of what was happening was right here
|
API Platform version(s) affected: 3.2.7
Description
RuntimeException is thrown on line 87 in LinksHandlerTrait for:
How to reproduce
Additional context
After some debugging, I observed that the data was correctly retrieved from the database.
The problem might start from
ApiPlatform\GraphQl\State\Provider\ReadProvider#107
ReadProvider
The text was updated successfully, but these errors were encountered: