Open migmolrod opened 5 years ago
Anything on this, @danielantelo ?
I've tried several combinations of error_mapping
, error_bubbling
and property_path
to no avail :(
Let me have a look at this, has been a while since i’ve updated this bundle, what version of symfony are you using? Are you using it standalone or via sonata admin?
Don't know if it can be called a 'bug'. Maybe 'room for improvement'. The thing is as follows:
Steps to reproduce:
What happens:
The validation errors for those fields are shown at the start of the form.
What should happen:
Each of those validation errors should be shown next to the corresponding field.
How to solve:
I think using the
error_mapping
option from Symfony Forms documentation should work (unless I misunderstood that option, which would not be rare XD) but I'm not able to get it right. Don't know where to use theerror_mapping
option. The AddressMapType? The AddressableAware model? The fields? What to put in the left and right sides of that option?