Could the problem be that you have to define the option 'required' for the
sfValidatorAnd and not for the Subvalidators (as in your example)?
So this works for me:
$this->validatorSchema['email'] = new sfValidatorAnd(array (
new sfValidatorString(array('max_length' => 255)),
new sfValidatorEmail()
), array('required'=>true));
cheers tfd
(inspired by http://trac.symfony-project.org/ticket/4046)
>
--
*medicujá GmbH* | Lüghauser Strasse 16, 51503 D-Rösrath | Tel:
0221-991112-0, Fax: 0221-991112-99
Geschäftsführer: Dr. med. Nawid Salimi | Handelsregister AG Köln, HRB 33282
| USt-Id: DE122786759
This message may contain confidential information. If you are not the
addressee or authorized to receive this for the addressee, you must not
use, copy, disclose or take any action based on this communication. If you
have received this message in error, please advise the sender immediately
by email-reply and delete this message. Thank you for your cooperation.
--
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 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