private function refreshJournal(InputInterface $input) { $this->journal = $this->em->getRepository('OjsJournalBundle:Journal')->find($input->getArgument('journalId')); if (!$this->journal) { throw new \LogicException('Please support valid journal id'); } }