Skip to content
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

Merged
merged 1 commit into from
May 27, 2016

Conversation

sustmi
Copy link
Contributor

@sustmi sustmi commented Mar 17, 2016

No description provided.

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
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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).

@sustmi sustmi force-pushed the clarify-class-constraints branch 2 times, most recently from 62a6805 to d02b6d1 Compare May 23, 2016 20:46
@sustmi
Copy link
Contributor Author

sustmi commented May 23, 2016

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
Copy link
Member

Choose a reason for hiding this comment

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

[...] constraints allow you [...]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Fixed.

@xabbuh
Copy link
Member

xabbuh commented May 24, 2016

👍 This reads good to me. I just left one minor comment, but we can also fix that while merging.

@sustmi sustmi force-pushed the clarify-class-constraints branch from d02b6d1 to 0efdda7 Compare May 24, 2016 10:16
@sustmi
Copy link
Contributor Author

sustmi commented May 24, 2016

The typo is fixed.

@wouterj
Copy link
Member

wouterj commented May 27, 2016

Thanks Miroslav, nice PR!

@wouterj wouterj merged commit 0efdda7 into symfony:2.3 May 27, 2016
wouterj added a commit that referenced this pull request May 27, 2016
…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
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.

3 participants