Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 19, 2024
1 parent 8059ece commit ccdeed2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,8 @@ HTTP status to return if the validation fails::

The default status code returned if the validation fails is 404.

If you want to map your object to a nested array in your query with a specific key,
you can use the ``key`` option in your :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapQueryString`
attribute::
If you want to map your object to a nested array in your query using a specific key,
set the ``key`` option in the ``#[MapQueryString]`` attribute::

use App\Model\SearchDto;
use Symfony\Component\HttpFoundation\Response;
Expand Down

0 comments on commit ccdeed2

Please sign in to comment.