Active
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2019 at 11:54 UTC
Updated:
27 Nov 2019 at 12:03 UTC
Jump to comment: Most recent
Currently, reusing validator objects statically cached with Drupal/Core/Validation/ConstraintValidatorFactory leads to incorrect outcome when recursively validating entities, which is described in #3096811: Reusing initialized constraint validators overwrittes validation errors . The solution proposed there is to avoid re-using validator instances, which makes class ConstraintValidatorFactory useless.
If we want to switch to 1) at some point we need to convince Symfony to add the context getter method for us in the constraint validators.
Comments
Comment #2
hchonov