Closed
Description
Symfony version(s) affected: 4.4.9, 5.0.9, 5.1.0
Description
Since the last point release (on 4.4, 5.0 and 5.1 branches), I get the following exception when calling submit
on a Symfony Form where the validation for some field in a subform failed:
Symfony\Component\PropertyAccess\Exception\InvalidPropertyPathException: Could not parse property path "children[[salutation]].data". Unexpected token "]" at position 21.
vendor/symfony/property-access/PropertyPath.php:111
vendor/symfony/form/Extension/Validator/ViolationMapper/ViolationPath.php:55
vendor/symfony/form/Extension/Validator/ViolationMapper/ViolationMapper.php:52
vendor/symfony/form/Extension/Validator/EventListener/ValidationListener.php:55
vendor/symfony/event-dispatcher/EventDispatcher.php:264
vendor/symfony/event-dispatcher/EventDispatcher.php:239
vendor/symfony/event-dispatcher/EventDispatcher.php:73
vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php:44
vendor/symfony/form/Form.php:671
I am not sure if the bug is on my end or in Symfony, all I can say is that it used to work fine up until 4.4.8, in 4.4.9 it broke, so I'm guessing it might be related to #36865 ?
How to reproduce
It's kind of a custom setup, so making a reproducable sample could take a while. But like I said, I'm not even sure if it's a bug on my end or in Symfony, so maybe someone has an idea off the top of their heads?