public function rejectAction($id)
{
/** @var Publisher $entity */
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('OjsJournalBundle:Publisher')->find($id);
if (!$entity) {
throw new NotFoundHttpException();
}
/** @var Journal $journal */
foreach ($entity->getJournals() as $journal) {
$journal->setStatus(JournalStatuses::STATUS_REJECTED);
$em->persist($journal);
}
$entity->setStatus(PublisherStatuses::STATUS_REJECTED);
$em->persist($entity);
$em->flush();
return $this->redirectToRoute('ojs_admin_application_publisher_edit', ['id' => $entity->getId()]);
}