src/Service/Entity/EntityUpdateService.php
public function setForm(EntityForm $form)
    {
        if (!$form->isValid()) {
            throw new InvalidFormDataException(
                "Submitted form data is not valid."
            );
        }
        $this->setData($form->getData());
        $this->form = $form;
        return $this;
    }
public function setForm(EntityForm $form)
    {
        if (!$form->isValid()) {
            throw new InvalidFormDataException(
                "Submitted form data is not valid."
            );
        }
        $this->setData($form->getData());
        $this->form = $form;
        return $this;
    }
public function setForm ( EntityForm $ form ) { if ( ! $ form -> isValid ( ) ) { throw new InvalidFormDataException ( "Submitted form data is not valid." ) ; } $ this -> setData ( $ form -> getData ( ) ) ; $ this -> form = $ form ; return $ this ; }
Set entity for

@param EntityForm $form

@return EntityUpdateService

@throws InvalidFormDataException If the provided form has invalid data
Set entity for