Skip to content

Instantly share code, notes, and snippets.

@jeremykendall
Created August 27, 2012 16:46
Show Gist options
  • Save jeremykendall/3490249 to your computer and use it in GitHub Desktop.
Save jeremykendall/3490249 to your computer and use it in GitHub Desktop.
First Zend_Validate_Db_NoRecordExists validator is ignored
$this->addElement('text', 'email', array(
'label' => 'Your email address',
'required' => true,
'validators' => array(
array('EmailAddress'),
array(
new \Zend_Validate_Db_NoRecordExists(array('table' => 'accounts', 'field' => 'email')),
'breakChainOnFailure' => true
),
array(new \Zend_Validate_Db_NoRecordExists(array('table' => 'beta_invites', 'field' => 'email')))
)
));
@jeremykendall
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment