[symfony-users] Re: validation of runtime generated object properties / dynamic forms

2011-04-19 Thread Holger
omponent/Form/ Validator/DelegatingValidator.php) in the method validateForm I recognize: $context->setCurrentProperty() Do I have to do something like $context->setCurrentProperty(''); where is the name of the property as defined in the validation.yml? Any help would appreciated, regards, Holger

[symfony-users] Re: [Symfony2] validation of runtime generated object properties / dynamic forms

2011-04-18 Thread Holger
Hi Bernhard, thanks for the quick reply! I'll have a look into it. Regards, Holger On 17 Apr., 18:09, Bernhard Schussek wrote: > Hi Holger, > > You can use the Callback constraint for this purpose. You can see an > example of its usage in > DelegatingValidator::vali

[symfony-users] [Symfony2] validation of runtime generated object properties / dynamic forms

2011-04-16 Thread Holger
ve. It would be great if somone could give me some hints on how to get such a validation scenario working. Thanks in advance, regards, Holger -- 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 s

[symfony-users] Re: basic form validation

2011-04-16 Thread Holger
Hi Candytron, have you tried to $this->setDataClass('Candy\\MyFirstBundle\\User'); inside Form::configure()? regards, Holger On 12 Apr., 00:23, Candytron wrote: > Hi all, > > Symfony2 newbie here.  I am attempting to get basic form validation > working.  The form is