-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Validate BIC based on associated IBAN #28166
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
Comments
PR are always welcomed :) |
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 15, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 16, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 16, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 18, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 18, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 18, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 18, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 18, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 20, 2018<
10000
/relative-time>
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 20, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 20, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 24, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 24, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 24, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Sep 25, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Oct 22, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Oct 22, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Oct 22, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Oct 22, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Oct 23, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Nov 5, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Nov 5, 2018
sylfabre
added a commit
to sylfabre/symfony
that referenced
this issue
Nov 5, 2018
nicolas-grekas
added a commit
that referenced
this issue
Dec 1, 2018
This PR was merged into the 4.3-dev branch. Discussion ---------- [Validator] Checking a BIC along with an IBAN | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28166 | License | MIT | Doc PR | symfony/symfony-docs#10349 A BIC comes usually with an IBAN so it's better to check that they are associated. This PR provides an `iban` option to `Symfony\Component\Validator\Constraints\Bic` to check the BIC against an IBAN. It also provides an `ibanPropertyPath` to retrieves the IBAN using the property accessor like with comparison constraints. Commits ------- bb6be15 [Validator] Checking a BIC along with an IBAN Fix #28166
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
A common use case is to save an IBAN with a BIC. Symfony provides validators for both properties but they do not communicate.
We could add an optional propertyPath option (like http://symfony.com/doc/current/reference/constraints/GreaterThan.html#propertypath) on the BIC validator to check if the country code of the BIC is the same as the country code of the IBAN.
I can submit a PR if you want.
Example
For instance a user can fill a French IBAN with a German BIC which will pass both validators but a failure could be expected somewhere as it does not make sense to fill a form/entity like this.
The text was updated successfully, but these errors were encountered: