diff --git a/api/src/DataFixtures/AppFixtures.php b/api/src/DataFixtures/AppFixtures.php index bdff8c5b..a5523e80 100644 --- a/api/src/DataFixtures/AppFixtures.php +++ b/api/src/DataFixtures/AppFixtures.php @@ -218,12 +218,12 @@ public function load(ObjectManager $manager) $trouwen->setTaxPercentage(0); $trouwen->setRequiresAppointment(false); $manager->persist($trouwen); - $product->setId($id); - $manager->persist($product); + $trouwen->setId($id); + $manager->persist($trouwen); foreach ([$trouwenUtrecht, $trouwenCeremoniersUtrecht] as $group) { $trouwen->addGroup($group); } - $manager->persist($product); + $manager->persist($trouwen); $manager->flush(); $manager->refresh($trouwen);