Skip to content

Clarify the mappings that require no method prefix. #7131

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

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@ Now, create the ``isPasswordLegal()`` method and include the logic you need::
.. note::

The keen-eyed among you will have noticed that the prefix of the getter
("get", "is" or "has") is omitted in the mapping. This allows you to move
the constraint to a property with the same name later (or vice versa)
without changing your validation logic.
("get", "is" or "has") is omitted in the mappings for the YAML, XML and PHP
formats. This allows you to move the constraint to a property with the same
name later (or vice versa) without changing your validation logic.

.. _validation-class-target:

Expand Down