Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] getClassMetadata on null value #37554

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

Closed
biozshock opened this issue Jul 10, 2020 · 2 comments
Closed

[Validator] getClassMetadata on null value #37554

biozshock opened this issue Jul 10, 2020 · 2 comments

Comments

@biozshock
Copy link
Contributor

Symfony version(s) affected: 3.4.41

Description
After merging symfony/validator@b50cd17 there is a possibility to have an exception (here https://github.com/symfony/validator/blob/b50cd17d3a154d096344ef22f54b8e3655cdf913/Validator/RecursiveContextualValidator.php#L317) when running down the code with null value as a result of $value->getPropertyValue().
For me that caused that the form errors were not mapped back to form children fields.

How to reproduce
Create a validator with getter validation, pass an object with such a validation to the form.

@xabbuh
Copy link
Member

xabbuh commented Jul 10, 2020

Can you confirm that this will be fixed by #37447?

@biozshock
Copy link
Contributor Author

Yes! Somehow overlooked it in commits list. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants