mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed exception about non-persisted entities, when using the cached StructuralEntityType.
This commit is contained in:
parent
7608d5dbda
commit
c7e8fc9642
3 changed files with 115 additions and 4 deletions
|
@ -72,6 +72,9 @@ abstract class BaseAdminController extends AbstractController
|
|||
$em->flush();
|
||||
}
|
||||
|
||||
//Rebuild form, so it is based on the updated data. Important for the parent field!
|
||||
$form = $this->createForm($this->form_class, $entity);
|
||||
|
||||
return $this->render($this->twig_template, [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue