I set post validator in embedded form:

class myEmbeddedForm extends BaseForm {
  function configure() {
    ...
    $this->validatorSchema->setPostValidator(new sfValidatorCallback(array(
       'callback' => array($this, 'embeddedPostValidator') 
    )));
  }

  function embeddedPostValidator($validator, $values) {
  ...
  }
}

And form which include this embedded form has to cancel this post validator in 
embedded form's pre validator?

function myForm extends BaseForm {
  function configure() {
    ...
    $this->embedForm('embedded', new myEmbeddedForm(array(), array(
      ...
    )));
    ...
    $this->validatorSchema->setPreValidator(new sfValidatorCallback(array(
      'callback' => array($this, 'myPreValidator')
    )));
  }

  function myPreValidator($validator, $values) {
    ...
    // how to cancel post validator in embedded form here?
  }
}

Pleas help me!
Sorry for my bad english.

-- 
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

Reply via email to