| Conditions | 4 |
| Paths | 8 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function load(ObjectManager $manager) |
||
| 26 | { |
||
| 27 | for ($i = 0; $i < self::INSTANCES_COUNT; $i += 1) { |
||
| 28 | $instance = new TestEntity(); |
||
| 29 | $instance->setUsername('username'); |
||
| 30 | $instance->setPassword('password'); |
||
| 31 | $manager->persist($instance); |
||
| 32 | } |
||
| 33 | |||
| 34 | for ($i = 0; $i < self::INSTANCES_COUNT; $i += 1) { |
||
| 35 | $instance = new Category(); |
||
| 36 | $instance->setName('category'); |
||
| 37 | $manager->persist($instance); |
||
| 38 | } |
||
| 39 | |||
| 40 | for ($i = 0; $i < self::INSTANCES_COUNT; $i += 1) { |
||
| 41 | $instance = new Country(); |
||
| 42 | $instance->setName('country'); |
||
| 43 | $manager->persist($instance); |
||
| 44 | } |
||
| 45 | |||
| 46 | $manager->flush(); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |