-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DoctrineBridge] Auto-validation must work if no regex are passed #33828
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
Conversation
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.
At least, the behavior must be consistent between |
The current behavior makes it harder to use this class when using only the component (without framework bundle). I'm favor of patching FrameworkBundle instead. |
Deregistering the loader service when no regex is configured would solve that, right? |
Indeed, it’s what I have in mind. |
5612e7d
to
b2d05a0
Compare
@xabbuh implemented, could you check if it's ok for you now? |
b2d05a0
to
5ed7d6c
Compare
… passed (dunglas) This PR was squashed before being merged into the 4.3 branch (closes #33828). Discussion ---------- [DoctrineBridge] Auto-validation must work if no regex are passed | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT | Doc PR | n/a Backport of https://github.com/symfony/symfony/pull/32107/files#r295762928. This behavior if faulty, if no regex are passed, autvalidation must be triggered, [as done in `PropertyInfoLoader`](https://github.com/symfony/symfony/blob/4.3/src/Symfony/Component/Validator/Mapping/Loader/PropertyInfoLoader.php#L50). Commits ------- 5ed7d6c [DoctrineBridge] Auto-validation must work if no regex are passed
Backport of https://github.com/symfony/symfony/pull/32107/files#r295762928.
This behavior if faulty, if no regex are passed, autvalidation must be triggered, as done in
PropertyInfoLoader
.