-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Validator] Inform developer if componant is missing #37012
Comments
I don't think that would be correct either since mapping constraints based on Doctrine metadata would work as expected. |
I am not sure to understand what you mean. Automatic validation was not working as expected for me until I manually added the |
Can you debug what the |
Actually you need PropertyInfo to extract some constraints from Doctrine metadata. But throwing an error if PropertyInfo isn’t installed is a bit harsh because you can also register your own guessers, without needing PropertyInfo. |
There are two different loaders: The |
I am going to close here for now due to the lack of feedback. Please let us know when you have more information and we can consider to reopen. |
Symfony version(s) affected: 5.0.8
Description
I started a new Symfony 5 project and I wanted to enable the automatic validation feature in my validator config file:
But automatic validation was not working after that.
This was because as mentioned in the blog post, this feature require
PropertyInfo
component to work.Maybe we should trigger an exception to informed the developer if this option is enabled but the component is not installed?
The text was updated successfully, but these errors were encountered: