| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function load(ObjectManager $manager): void |
||
| 16 | { |
||
| 17 | /*INSERT INTO skill (name, icon, description, short_code, access_url_id, updated_at) VALUES ('Root', '', '', 'root', 1, now()); |
||
| 18 | INSERT INTO skill_rel_skill VALUES(1, 1, 0, 0, 0);*/ |
||
| 19 | |||
| 20 | // @todo check if we still need skill_rel_skill |
||
| 21 | $skill = (new Skill()) |
||
| 22 | ->setName('Root') |
||
| 23 | ->setShortCode('root') |
||
| 24 | ->setAccessUrlId(1) |
||
| 25 | ; |
||
| 26 | $manager->persist($skill); |
||
| 27 | |||
| 28 | $manager->flush(); |
||
| 29 | } |
||
| 31 |