diff --git a/webapp/src/DataFixtures/DefaultData/TeamCategoryFixture.php b/webapp/src/DataFixtures/DefaultData/TeamCategoryFixture.php index 106452f339..630ba2f216 100644 --- a/webapp/src/DataFixtures/DefaultData/TeamCategoryFixture.php +++ b/webapp/src/DataFixtures/DefaultData/TeamCategoryFixture.php @@ -23,7 +23,7 @@ public function load(ObjectManager $manager): void ]; foreach ($data as $item) { - if (!($category = $manager->getRepository(TeamCategory::class)->findOneBy(['name' => $item[0]]))) { + if (!($category = $manager->getRepository(TeamCategory::class)->findOneBy(['externalid' => $item[4]]))) { $category = (new TeamCategory()) ->setName($item[0]) ->setSortorder($item[1])