viewToNorm example

// Use InheritDataAwareIterator to process children of                     // descendants that inherit this form's data.                     // These descendants will not be submitted normally (see the check                     // for $this->config->getInheritData() above)                     $this->config->getDataMapper()->mapFormsToData(
                        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);
                
Home | Imprint | This part of the site doesn't use cookies.