[symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
Hi, i have a form that i need to check whether 2 strings is equal and i'm using a setPostvalidator to check duplicated fields in my DB. The 2 codes works fine. But only one for time. not the both together. here is the code: class UsersForm extends BaseUsersForm { (...) public function

Re: [symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Lea Hänsenberger
Hi, use an sfValidatorAnd to combine the two post validators: $this-mergePostValidator(new sfValidatorAnd(array( new sfValidatorCallback(array('callback' = array($this, 'checkSOCIALSECURITY'))), new sfValidatorSchemaCompare('senha', sfValidatorSchemaCompare::EQUAL,

Re: [symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
Thanks works fine! Augusto Morais 2010/3/16 Lea Hänsenberger baerne...@gmail.com Hi, use an sfValidatorAnd to combine the two post validators: $this-mergePostValidator(new sfValidatorAnd(array( new sfValidatorCallback(array('callback' = array($this, 'checkSOCIALSECURITY'))),