Skip to content

Commit

Permalink
Added more fixed UUID's
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Jan 3, 2020
1 parent df8e608 commit 29f22ba
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions api/src/DataFixtures/AppFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ public function load(ObjectManager $manager)
$manager->flush();
$manager->refresh($burgerzakenDenBosh);

//$id = Uuid::fromString('d1a8b316-5966-4a29-8cf7-be15b8302301');
$id = Uuid::fromString('d1cc2c8c-c87d-4bb1-b468-9546b4ce29a5');
$burgerzakerEindhoven = new Group();
$burgerzakerEindhoven->setName('Burgerzaken');
$burgerzakerEindhoven->setDescription('Alle producten met betrekking tot burgerzaken');
$burgerzakerEindhoven->setSourceOrganization('1234567');
$burgerzakerEindhoven->setCatalogue($eindhoven);
$manager->persist($burgerzakerEindhoven);
//
//$burgerzakerEindhoven->setId($id);
$burgerzakerEindhoven->setId($id);
$manager->persist($burgerzakerEindhoven);
$manager->flush();
$manager->refresh($burgerzakerEindhoven);
Expand All @@ -134,7 +134,8 @@ public function load(ObjectManager $manager)
$trouwenUtrecht->setSourceOrganization('002220647');
$trouwenUtrecht->setCatalogue($utrecht);
$manager->persist($trouwenUtrecht);
//$trouwenUtrecht->setId($id);
//
$trouwenUtrecht->setId($id);
$manager->persist($trouwenUtrecht);
$manager->flush();
$manager->refresh($trouwenUtrecht);
Expand Down Expand Up @@ -196,11 +197,13 @@ public function load(ObjectManager $manager)
$trouwenExtraUtrecht->setCatalogue($utrecht);
$manager->persist($trouwenExtraUtrecht);
//
$trouwenCeremoniersUtrecht->setId($id);
$trouwenExtraUtrecht->setId($id);
$manager->persist($trouwenExtraUtrecht);
$manager->flush();
$manager->refresh($trouwenExtraUtrecht);

$manager->clear();

$trouwen = new Product();
$trouwen->setName('Trouwen / Partnerschap');
$trouwen->setSourceOrganization('002220647');
Expand All @@ -223,8 +226,8 @@ public function load(ObjectManager $manager)
$product->setSourceOrganization('002220647');
$product->setDescription('Eenvoudig Trouwen');
$product->setType('set');
$product->addGroup($trouwenCeremoniersUtrecht);
//foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) {
// $product->addGroup($group);
//}
$product->setCatalogue($utrecht);
$product->setPrice('163.00');
Expand Down

0 comments on commit 29f22ba

Please sign in to comment.