Hello,

any reason why this validator is not affected by 'required' => false?
I want to combine it like so:

$this->setValidator('mpn', new sfValidatorAnd(array(
    new sfValidatorString(array('min_length' => 5, 'max_length' => 64,
'required' => false)),
    new sfValidatorRegex(array('pattern' =>
'/^(\s+)?[\w-\#\/]+(\s+)?$/', 'required' => false))
  ))
);

Thanks

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

Reply via email to