-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[book] [validation] Constraints can be applied to an entire class too #6380
Conversation
Constraints can be applied to a class property (e.g. ``name``) or a public | ||
getter method (e.g. ``getFullName``). The first is the most common and easy | ||
Constraints can be applied to a class property (e.g. ``name``), a public | ||
getter method (e.g. ``getFullName``) or an entire class. The first is the most common and easy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following sentence now doesn't match properly anymore. Can you reword that a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you be more specific @xabbuh ? What is the sentence not matching properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the following sentence we mention "the first" and "the second" which is not exact anymore as we now have three things (property, method, and class).
62a6805
to
d02b6d1
Compare
I updated the commit to mention all three validation targets. |
to use, but the second allows you to specify more complex validation rules. | ||
Constraints can be applied to a class property (e.g. ``name``), a public | ||
getter method (e.g. ``getFullName``) or an entire class. Property constraints | ||
are the most common and easy to use. Getter constraints allows you to specify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] constraints allow you [...]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
👍 This reads good to me. I just left one minor comment, but we can also fix that while merging. |
d02b6d1
to
0efdda7
Compare
The typo is fixed. |
Thanks Miroslav, nice PR! |
…re class too (sustmi) This PR was merged into the 2.3 branch. Discussion ---------- [book] [validation] Constraints can be applied to an entire class too Commits ------- 0efdda7 [book] [validation] Constraints can be applied to an entire class too
No description provided.