Dear fellow developers.
First, I am happy that we can do validation outside forms pretty easily and that's a very good thing. But I have a hard time understanding this one: http://symfony.com/doc/master/book/validation.html#getters This is about adding validation to the getters. My question is simple: Could someone please explain to me why the validation is on the getter and not the setter? When it's set it's already too late to handle the exception properly. I would rather like to know that something is wrong with my data/value when I *set* the value, not when I am about to use it. And secondly; I would expect a true from a function with the name "isPasswordLegal" means the password *is* legal and not ending up with a validation error message. So, am I just missing some logic here? I'd like to be educated. Thomas. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
