public function createAction(Request $request)
{
$entity = new Institution();
$form = $this->createCreateForm($entity);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$em->persist($entity);
$em->flush();
$this->successFlashBag('successful.create');
return $this->redirectToRoute('ojs_admin_institution_show', ['id' => $entity->getId()]);
}
return $this->render('OjsAdminBundle:AdminInstitution:new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
}