I agree that my method should be unnecessary. It seems redundant. But it's the only way I've been able to get validation to trigger for this and I've been trying for the past week to get it working. I'm still working on getting it to work using the default bundle settings. For now though, my method is a workaround that's sort of working in my case.
I say "sort of" because I discovered an hour ago that even if validation fails for the embedded form, the entire form validates successfully. I'm really not sure why that would be the case since it doesn't sound like that should be happening based on other comments on that subject. It also doesn't make intuitive sense. So my workaround doesn't appear to completely solve the issue. It does get the custom validator to be recognized by Symfony2 but that's about it. I'm also using the FOSUserBundle for user management. I'm not sure if that has anything to do with it. I've been debugging form submissions for my registration form and everything is working as it should except for this one small detail. I don't get it. If the isValid() function for the Recaptcha returns false, why would that result in the entire registration form successfully validating? My code isn't that complicated. It's just a simple user registration form. Anyway, I'm going to keep looking at this to see if I can figure out why I'm having so much trouble. It might be a few days though since I have other stuff that needs to take priority for the time being. -- 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 users" group. To post to this group, send email to symfony-users@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