public function updateAction(Request $request, $id)
{
/** @var Publisher $entity */
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('OjsJournalBundle:Publisher')->find($id);
$this->throw404IfNotFound($entity);
$form = $this->createForm(new PublisherApplicationType(), $entity);
$form->handleRequest($request);
if ($form->isValid()) {
$em->flush();
$this->successFlashBag('successful.update');
return $this->redirect($this->generateUrl('ojs_admin_application_publisher_index'));
}
return $this->render('OjsAdminBundle:AdminApplication:publisher_edit.html.twig', ['form' => $form->createView(), 'entity' => $entity]);
}