Symfony\Component\Form\FormInterface::setParent
Sets the parent form.
Signature
public function setParent([FormInterface
$parent = null] )
Parameters
$parent
— Symfony\Component\Form\FormInterface|null- The parent form or null if it's the root.
Returns
- FormInterface
- The form instance
Errors/Exceptions
-
AlreadySubmittedException
- If the form has already been submitted.
-
LogicException
- When trying to set a parent for a form with