| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class LoadSemester extends BaseFixture |
||
| 19 | { |
||
| 20 | const ORDER = 1; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Load data fixtures with the passed EntityManager. |
||
| 24 | * |
||
| 25 | * @param ObjectManager $manager |
||
| 26 | */ |
||
| 27 | public function load(ObjectManager $manager) |
||
| 28 | { |
||
| 29 | $semester = new Semester(); |
||
| 30 | $semester->setName('HS 2018'); |
||
| 31 | $manager->persist($semester); |
||
| 32 | $manager->flush(); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the order of this fixture. |
||
| 37 | * |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | public function getOrder() |
||
| 43 | } |
||
| 44 | } |
||
| 45 |