Skip to content

[Validator] Document the DivisibleBy constraint #10121

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

Merged
merged 1 commit into from
Sep 6, 2018
Merged

[Validator] Document the DivisibleBy constraint #10121

merged 1 commit into from
Sep 6, 2018

Conversation

colinodell
Copy link
Contributor

@colinodell colinodell commented Jul 26, 2018

Documentation for the new MultipleOf DivisibleBy constraint proposed in symfony/symfony#28069

@colinodell colinodell changed the title Document the MultipleOf constraint [Validator] Document the MultipleOf constraint Jul 26, 2018
@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Jul 27, 2018
@xabbuh xabbuh added this to the next milestone Aug 4, 2018
@colinodell colinodell changed the title [Validator] Document the MultipleOf constraint [Validator] Document the DivisibleBy constraint Aug 10, 2018
@colinodell
Copy link
Contributor Author

The constraint has been renamed, so I've updated the documentation accordingly.

symfony-splitter pushed a commit to symfony/validator that referenced this pull request Aug 15, 2018
…ivisibility (colinodell)

This PR was squashed before being merged into the 4.2-dev branch (closes #28069).

Discussion
----------

[Validator] New `DivisibleBy` constraint for testing divisibility

This introduces a new ~`MultipleOf`~ `DivisibleBy` constraint which checks whether one number is a multiple of (aka "divisible by") some other number.  Useful for enforcing specific increments on a number.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | symfony/symfony-docs#10121

See symfony/symfony-docs#10121 for examples of this constraint in action.

Commits
-------

efcfb8b22d [Validator] New `DivisibleBy` constraint for testing divisibility
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Aug 15, 2018
…ivisibility (colinodell)

This PR was squashed before being merged into the 4.2-dev branch (closes #28069).

Discussion
----------

[Validator] New `DivisibleBy` constraint for testing divisibility

This introduces a new ~`MultipleOf`~ `DivisibleBy` constraint which checks whether one number is a multiple of (aka "divisible by") some other number.  Useful for enforcing specific increments on a number.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | symfony/symfony-docs#10121

See symfony/symfony-docs#10121 for examples of this constraint in action.

Commits
-------

efcfb8b [Validator] New `DivisibleBy` constraint for testing divisibility
Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

@colinodell thanks a lot for providing this new constraint and for documenting it too. Sadly there are some merge conflicts. Could you please fix them? Thanks!

@javiereguiluz javiereguiluz removed the Waiting Code Merge Docs for features pending to be merged label Sep 4, 2018
@colinodell
Copy link
Contributor Author

Thanks for the heads-up @javiereguiluz! Looks like the Range constraint was being added in the same spot in the docs 🙃 I have squashed my two commits together and rebased them on top of master.

@javiereguiluz javiereguiluz modified the milestones: next, 4.2 Sep 6, 2018
@javiereguiluz
Copy link
Member

It's merged now. Thanks Colin!

@javiereguiluz javiereguiluz merged commit 3270cca into symfony:master Sep 6, 2018
javiereguiluz added a commit that referenced this pull request Sep 6, 2018
…ell)

This PR was merged into the master branch.

Discussion
----------

[Validator] Document the DivisibleBy constraint

Documentation for the new ~`MultipleOf`~ `DivisibleBy` constraint proposed in symfony/symfony#28069

Commits
-------

3270cca Document the DivisibleBy constraint
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.

5 participants