One idea might be to make use of isNew to differentiate between an INSERT and and UPDATE in your logic. I've not tried this, so it's just an idea. If it doesn't work, write a custom validator and pass an option in to control the validation logic. best of luck - Michael
[form.php] if ($this->isNew) { ....validate this way for INSERT } else { ....or validate that way for UPDATE } On Fri, Sep 24, 2010 at 12:40 PM, trent <k...@yahoo.com> wrote: > Anyone? I cleaned the code up a little: > > $this->validatorSchema["url"] = new sfValidatorAnd(array( > new sfValidatorUrl(), > new sfValidatorDoctrineUnique(array('model' => > 'TetCase','column'=> array('url')), > new sfValidatorDoctrineUnique(array('model' > =>'TetCase','column'=> array('url2'))), > array('halt_on_error' => true, 'required' => false)); > > -- > 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 users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en