src/FormHandler.php
public function saveToEntities()
    {
        $data = $this->transformFromFormData($this->data);

        foreach ($this->entities as $entity) {
            if ($entity['entity'] instanceof EntityInterface) {
                $entity['entity']->setFormData($data, $entity['fields']);
            } else {
                $this->entityProcessor->saveToEntity($entity['entity'], $data, $entity['fields']);
            }
        }
    }
public function saveToEntities()
    {
        $data = $this->transformFromFormData($this->data);

        foreach ($this->entities as $entity) {
            if ($entity['entity'] instanceof EntityInterface) {
                $entity['entity']->setFormData($data, $entity['fields']);
            } else {
                $this->entityProcessor->saveToEntity($entity['entity'], $data, $entity['fields']);
            }
        }
    }
public function saveToEntities ( ) { $ data = $ this -> transformFromFormData ( $ this -> data ) ; foreach ( $ this -> entities as $ entity ) { if ( $ entity [ 'entity' ] instanceof EntityInterface ) { $ entity [ 'entity' ] -> setFormData ( $ data , $ entity [ 'fields' ] ) ; } else { $ this -> entityProcessor -> saveToEntity ( $ entity [ 'entity' ] , $ data , $ entity [ 'fields' ] ) ; } } }
Save the current form data to the assigned entities
Save the current form data to the assigned entities