Ojs\AdminBundle\Controller\AdminJournalApplicationController::rejectAction PHP Method

rejectAction() public method

public rejectAction ( $id )
    public function rejectAction($id)
    {
        /** @var Journal $entity */
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('OjsJournalBundle:Journal')->find($id);
        $this->throw404IfNotFound($entity);
        $entity->setStatus(JournalStatuses::STATUS_REJECTED);
        $em->persist($entity);
        $em->flush();
        $this->successFlashBag('successfully.rejected.journal');
        return $this->redirectToRoute('ojs_admin_application_journal_index');
    }