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
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
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
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