I'm using Symfony 1.4 and having an issue using multiple form validators.
For part of the form, I need to make sure the email address is valid AND unique. Here's the code I'm trying to use this:
$this->validatorSchema['email_address'] = new sfValidatorAnd(
array(
new sfValidatorEmail(),
new sfValidatorPropelUnique(array('model' => 'Users', 'column' => 'email_address')
),
));
As far as I can tell, this SHOULD work. However, when I post the form, I get the following error message
You must pass an array parameter to the clean() method (this validator can only be used as a post validator).
Any ideas or suggestions?