| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Nord\Lumen\Doctrine\ORM\Console; |
||
| 25 | public function fire() |
||
| 26 | { |
||
| 27 | $loader = new Loader(); |
||
| 28 | |||
| 29 | $this->info('Loading fixtures ...'); |
||
| 30 | |||
| 31 | $loader->loadFromDirectory($this->option('path')); |
||
| 32 | |||
| 33 | $fixtures = $loader->getFixtures(); |
||
| 34 | |||
| 35 | $purger = new ORMPurger(); |
||
| 36 | $executor = new ORMExecutor($this->getEntityManager(), $purger); |
||
| 37 | $executor->execute($fixtures, $this->option('append')); |
||
| 38 | |||
| 39 | $this->info('Fixtures loaded!'); |
||
| 40 | } |
||
| 41 | |||
| 54 |