2008/10/15 Kris Wallsmith <[EMAIL PROTECTED]>: > > Yes, after a second look at sfValidatorSchema::doClean() I see you're > correct. It appears the post validator just has access to the clean > values. However, if a field fails validation, its clean value is set > to NULL. That may help... > > Kris
Hmm - You are right and it looks like a good way to accomplish my goal. Thanks for help > > On Oct 15, 2008, at 5:31 AM, Łukasz Wojciechowski wrote: > >> W dniu 15 października 2008 09:38 użytkownik Kris Wallsmith >> <[EMAIL PROTECTED]> napisał: >>> >>> Hi Łukasz, >>> >>> If I understand correctly, you want your post validator to be aware >>> of >>> what fields have thrown validation errors? I believe there are two >>> ways to do this: >>> >>> 1. Create a custom validator class that accepts the form's >>> validatorSchema as a constructor argument. >>> 2. Use sfValidatorCallback as your post validator and direct it to a >>> method on your form. This method will then have access to the form's >>> validatorSchema via $this >>> >>> Someone else may know of another way... >>> >>> Kris >>> >> >> I believe that this is not the solution to my problem because all >> information about failed validators are propagated to sfForm at the >> end of validation process. >> >> >> >>> On Oct 14, 10:53 pm, Fabien Potencier <[EMAIL PROTECTED] >>> project.com> wrote: >>>> Łukasz Wojciechowski wrote: >>>>> Hi >>>> >>>>> Im dissapointed that I can't check Validation state in my >>>>> PostValidator :( >>>> >>>> What do you mean by Validation? >>>> >>>> Fabien >>>> >>>> >>>> >>>>> According to sfValidatorSchema::doClean - this is not possible now >>>> >>>>> Or maybe Im wrong (I hope so :)) ? If there is a way - please >>>>> tell me. >>>> >>> >>> >> >> >> >> -- >> Best regards >> Łukasz Wojciechowski >> >> New Generation Software >> +48 602 214 629 >> >> > > > > > > > -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
