Skip to content

Update controller.rst, fix use statement App\Model\UserDto #19856

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

Merged
merged 1 commit into from
May 3, 2024

Conversation

gladx
Copy link
Contributor

@gladx gladx commented May 2, 2024

In use statement use wrong case, then this error happens 'Case mismatch between loaded and declared class names: "App\Model\UserDto" vs "App\Model\UserDTO". ',

https://stackoverflow.com/questions/78352633/controller-returning-500-could-not-denormalize-object-of-type/78420166

@@ -410,7 +410,7 @@ optional validation constraints::
You can then use the :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapQueryString`
attribute in your controller::

use App\Model\UserDto;
use App\Model\UserDTO;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

above UserDTO is used

@xabbuh xabbuh added this to the 6.4 milestone May 3, 2024
@xabbuh xabbuh mentioned this pull request May 3, 2024
In use statement use wrong case, then this error happens 'Case mismatch between loaded and declared class names: "App\Model\UserDto" vs "App\Model\UserDTO". ',

https://stackoverflow.com/questions/78352633/controller-returning-500-could-not-denormalize-object-of-type/78420166
@javiereguiluz javiereguiluz changed the base branch from 7.0 to 6.4 May 3, 2024 15:44
@javiereguiluz
Copy link
Member

Good catch Ali! Thanks ... and congrats on your first Symfony Docs contribution 🎉

@javiereguiluz javiereguiluz merged commit d9a4916 into symfony:6.4 May 3, 2024
@gladx gladx deleted the patch-1 branch May 3, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants