-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
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:
framework:
validation:
# Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
auto_mapping:
App\Entity\: []
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?