Bernhard, I considered that, but then wondered if the "Default" group was not being handled at all, wouldn't the "Valid" constraint on the Form itself be ignored? That's responsible for kicking off the entire chain of object validation, from what I understand. That constraint was definitely checked when using my custom group (let's call it "Editing"), so it's curious that RepeatedField's constraint was not - since they are defined identically.
I noticed that during annotation loading (haven't checked Yaml/XML), you add the implicit group "Default" to loaded constraints - I believe via the addConstraint() method call. So if my own constraints, given the "Editing" group, also get tagged as "Default" during loading, wouldn't that conflict with plans to inject "Default" during Form validation? On Thu, Jan 20, 2011 at 3:41 AM, Bernhard Schussek <[email protected]>wrote: > Hi Jeremy, > > Without further investigation, this sounds like a bug (by design) to > me. Probably, the groups specified in "validation_groups" should only > be used to validate the data (the underlying object) while the form > itself should always be validated in group "Default". Right now, also > the form is validated in the custom group, which results in no > constraint being validated at all (because they are all in "Default"). > > Does that make sense? > > Bernhard > -- > Software Architect & Engineer > Blog: http://webmozarts.com > Twitter: http://twitter.com/webmozart > > -- > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- jeremy mikola -- 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
