From d456b4e914f72d1aa6999222d5f5e2da20cbc18b Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Sat, 4 Jan 2020 10:03:45 +0100 Subject: [PATCH] refatched entities from database --- api/src/DataFixtures/AppFixtures.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/api/src/DataFixtures/AppFixtures.php b/api/src/DataFixtures/AppFixtures.php index 11bfcb57..4323ca01 100644 --- a/api/src/DataFixtures/AppFixtures.php +++ b/api/src/DataFixtures/AppFixtures.php @@ -204,6 +204,13 @@ public function load(ObjectManager $manager) $manager->clear(); + $trouwenExtraUtrecht = $em->getRepository('App:Group')->findBy(array('id'=> 'f8298a12-91eb-46d0-b8a9-e7095f81be6f')); + $trouwenCeremoniersUtrecht= $em->getRepository('App:Group')->findBy(array('id'=> '1cad775c-c2d0-48af-858f-a12029af24b3')); + $trouwenLocatiesUtrecht= $em->getRepository('App:Group')->findBy(array('id'=> '170788e7-b238-4c28-8efc-97bdada02c2e')); + $trouwenAmbtenarenUtrecht= $em->getRepository('App:Group')->findBy(array('id'=> '7f4ff7ae-ed1b-45c9-9a73-3ed06a36b9cc')); + $trouwenUtrecht = $em->getRepository('App:Group')->findBy(array('id'=> '0c1f993d-f9e2-46c5-8d83-0b6dfb702069')); + $burgerzakenUtrecht = $em->getRepository('App:Group')->findBy(array('id'=> 'd1a8b316-5966-4a29-8cf7-be15b8302301')); + $trouwen = new Product(); $trouwen->setName('Trouwen / Partnerschap'); $trouwen->setSourceOrganization('002220647'); @@ -227,8 +234,6 @@ public function load(ObjectManager $manager) $product->setDescription('Eenvoudig Trouwen'); $product->setType('set'); $product->addGroup($trouwenCeremoniersUtrecht); - //foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) { - //} $product->setCatalogue($utrecht); $product->setPrice('163.00'); $product->setPriceCurrency('EUR');