public function newAction($issueId)
{
$journal = $this->get('ojs.journal_service')->getSelectedJournal();
$em = $this->getDoctrine()->getManager();
if (!$this->isGranted('CREATE', $journal, 'issues')) {
throw new AccessDeniedException('You are not authorized for create issue file for this journal!');
}
/** @var Issue $issue */
$issue = $em->getRepository('OjsJournalBundle:Issue')->find($issueId);
$this->throw404IfNotFound($issue);
$entity = new IssueFile();
$entity->setIssue($issue);
$form = $this->createCreateForm($entity, $journal->getId())->add('create', 'submit', array('label' => 'c'));
return $this->render('OjsJournalBundle:IssueFile:new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
}