Hi there, I have a rather complicated form of 50+ fields. The value of one of the first fields dictates whether validation should be performed on approximately half of the fields or not. These fields all need to be validated using native Symfony validators. As directed by the documentation I suspected that this is a time for a post-validator.
However, it isn't clear to me how I go about using native Symfony validators within a post-validator, infact I'm pretty sure it won't work having run a simple test. I'm also wondering whether a custom validator schema might be the answer, but I can't quite see how (I've read the advanced forms page). The solution I've arrived at is a custom bind() method that calls a configureValidation() method, passing it the $taintedValues array. This configureValidation() method then defines the validators according to the submitted data and it works nicely. My main question is, would you regard this solution as a bit hacky - could there be a more elegant way of doing this? Thanks John
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.