| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 56 | { |
||
| 57 | if (null === $this->em) { |
||
| 58 | $this->em = $this->getContainer()->get('doctrine.orm.entity_manager'); |
||
| 59 | } |
||
| 60 | |||
| 61 | $this->em->getRepository('KunstmaanMediaBundle:Folder')->rebuildTree(); |
||
| 62 | $output->writeln('Updated all folders'); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |
If you suppress an error, we recommend checking for the error condition explicitly: