public function updateAction(Request $request, $id)
{
$em = $this->getDoctrine()->getManager();
/** @var AdminJournalTheme $entity */
$entity = $em->getRepository('OjsAdminBundle:AdminJournalTheme')->find($id);
$this->throw404IfNotFound($entity);
$editForm = $this->createEditForm($entity);
$editForm->handleRequest($request);
if ($editForm->isValid()) {
$em->flush();
$this->successFlashBag('successful.update');
return $this->redirectToRoute('ojs_admin_journal_theme_edit', ['id' => $id]);
}
return $this->render('OjsAdminBundle:AdminJournalTheme:edit.html.twig', array('entity' => $entity, 'edit_form' => $editForm->createView()));
}