new \
RecursiveIteratorIterator(new InheritDataAwareIterator($this->children
)),
$viewData );
} // Normalize data to unified representation
$normData =
$this->
viewToNorm($viewData);
// Hook to change content of the data in the normalized
// representation
if ($dispatcher->
hasListeners(FormEvents::SUBMIT
)) { $event =
new SubmitEvent($this,
$normData);
$dispatcher->
dispatch($event, FormEvents::SUBMIT
);
$normData =
$event->
getData();
} // Synchronize representations - must not change the content!
$modelData =
$this->
normToModel($normData);
$viewData =
$this->
normToView($normData);
} } catch (TransformationFailedException
$e) { $this->transformationFailure =
$e;