On Tue, Apr 26, 2011 at 4:22 PM, Bernhard Schussek <bschus...@gmail.com> wrote: > > How do you plan to validate your form then? Usually this is done using > the validation constraints in the underlying object. If you want to > work on plain arrays, this is possible but not documented yet and > slightly more complicated. I'm validating with: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('query', new MaxLength(100)); } As I noticed the data option is working but not displayed properly, I tried to look into the source code but it is always overridden just before buildView is called. My way was to set the data in buildForm from ChoiceType so CheckBoxType has the correct data at the creation.
Could you please hint me on where to look at? Thanks, -- Vincent -- 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