addText('name', 'fcadmin.forms.account.name') ->setRequired(); $form->addSubmit('submit', 'fcadmin.forms.account.submit'); } protected function getEntityClass(): ?string { return Account::class; } /** * @throws Exception */ public function processForm(): void { $this->em->flush(); } }