Skip to content

Commit

Permalink
minor #6153 Update filters.rst (alexandre-mace)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Update filters.rst

Fix call to an undefined method

<!--
Thanks for your contribution! If you are proposing a new feature that is complex,
please open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license
-->

Commits
-------

ea6471b Update filters.rst
  • Loading branch information
javiereguiluz committed Feb 28, 2024
2 parents 45e8533 + ea6471b commit ae1057d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ the ``country`` property of the ``customer``). In those cases, set the
return $filters
// 'country' doesn't exist as a property of 'Order' so it's
// defined as 'not mapped' to avoid errors
->add(CustomerCountryFilter::new('country')->mapped(false))
->add(CustomerCountryFilter::new('country')->setFormTypeOption('mapped', false))
;
}
}
Expand Down

0 comments on commit ae1057d

Please sign in to comment.