Skip to content

Commit

Permalink
fixup! Add NZPC tweaks for the existing fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
tom93 committed Jul 30, 2024
1 parent ee3ef3c commit 7d3b165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/DataFixtures/ExampleData/NZPCFixtureFixes.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function load(ObjectManager $manager): void
$nzpcCategory = $manager->getRepository(TeamCategory::class)->findOneBy(['name' => 'Tertiary Open']);
if (!$nzpcCategory) {
$this->logger->warning('Cannot find NZPC category "Tertiary Open", setting category of example team to "System" instead');
$team->setCategoryid(1);
$team->setCategory($manager->getRepository(TeamCategory::class)->findOneBy(['name' => 'System']));
} else {
$team->setCategory($nzpcCategory);
}
Expand Down

0 comments on commit 7d3b165

Please sign in to comment.