I have a form witch contains embededForms.
the Post-Validator:
$this->validatorSchema->setPostValidator(
new sfValidatorCallback(
array('callback' => array($this, 'myPostValidator'))
)
);
I throw an error in the myPostValidator method:
$error = new sfValidatorError($validator, 'invalid ' . $values['embededform1']['field']);
throw new sfValidatorErrorSchema($validator, array('field' => $error));
now I get an global error for the root-form.
I want to display the error next to the correct field.
$values['embededform1']['field']