The order matters. Just have a look at the doClean() method of the sfValidatorAnd class.
Johannes On 21 Mai, 19:48, Javier Garcia <tirengar...@gmail.com> wrote: > Sorry, in that order it doesn't work. In the reverse order it works. > > On May 21, 7:12 pm, Javier Garcia <tirengar...@gmail.com> wrote: > > > > > Hi, > > > I have this code: > > > $this->validatorSchema->setPostValidator(new sfValidatorAnd(array( > > > new ValidatorPasswordActual(array(), array('invalid' => 'Contraseña > > actual incorrecta.')), > > > new sfValidatorSchemaCompare('password_nuevo', > > > sfValidatorSchemaCompare::EQUAL, > > > 'password_confirmacion', > > array(), > > > array('invalid' => 'Los dos passwords no coinciden')) > > > In that order the validation works ok, but if i change the order it > > doesn't work ok. > > > -- > > Javi > > > Ubuntu 8.04 - Symfony 1.3 > > > -- > > 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 > > athttp://groups.google.com/group/symfony-users?hl=en > > -- > 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 > athttp://groups.google.com/group/symfony-users?hl=en -- 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