📅  最后修改于: 2022-03-11 14:54:16.027000             🧑  作者: Mango
/* in form */
/* in controller */
if ($form->isSubmitted() && $form->isValid()) {
$em->persist($thisEntity);
$em->flush();
return $this->redirect($request->request->get('referer'));
}