diff --git a/api/src/DataFixtures/AppFixtures.php b/api/src/DataFixtures/AppFixtures.php index 5f7af32d..bdff8c5b 100644 --- a/api/src/DataFixtures/AppFixtures.php +++ b/api/src/DataFixtures/AppFixtures.php @@ -206,29 +206,33 @@ public function load(ObjectManager $manager) $trouwenUtrecht = $manager->getRepository('App:Group')->findOneBy(array('id'=> '0c1f993d-f9e2-46c5-8d83-0b6dfb702069')); $burgerzakenUtrecht = $manager->getRepository('App:Group')->findOneBy(array('id'=> 'd1a8b316-5966-4a29-8cf7-be15b8302301')); + $id = Uuid::fromString('d1a8b316-5966-4a29-8cf7-be15b8302301'); $trouwen = new Product(); $trouwen->setName('Trouwen / Partnerschap'); $trouwen->setSourceOrganization('002220647'); $trouwen->setDescription('Trouwen'); $trouwen->setType('set'); - foreach ([$trouwenUtrecht, $trouwenCeremoniersUtrecht] as $group) { - $trouwen->addGroup($group); - } $trouwen->setCatalogue($utrecht); $trouwen->setPrice('627.00'); $trouwen->setPriceCurrency('EUR'); $trouwen->setTaxPercentage(0); $trouwen->setRequiresAppointment(false); $manager->persist($trouwen); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenCeremoniersUtrecht] as $group) { + $trouwen->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($trouwen); + $id = Uuid::fromString('16353702-4614-42ff-92af-7dd11c8eef9f'); $product = new Product(); $product->setName('Eenvoudig Trouwen'); $product->setSourceOrganization('002220647'); $product->setDescription('Eenvoudig Trouwen'); $product->setType('set'); - $product->addGroup($trouwenCeremoniersUtrecht); $product->setCatalogue($utrecht); $product->setPrice('163.00'); $product->setPriceCurrency('EUR'); @@ -236,17 +240,21 @@ public function load(ObjectManager $manager) $product->setRequiresAppointment(false); //$product->setParent($trouwen); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('190c3611-010d-4b0e-a31c-60dadf4d1c62'); $product = new Product(); $product->setName('Gratis Trouwen'); $product->setSourceOrganization('002220647'); $product->setDescription('Gratis Trouwen'); $product->setType('set'); - //foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -254,17 +262,21 @@ public function load(ObjectManager $manager) $product->setRequiresAppointment(false); //$product->setParent($trouwen); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('1edd4d62-d778-452a-8b2a-ac22f3dcdf4d'); $product = new Product(); $product->setName('Dhr Erik Hendrik'); $product->setSourceOrganization('002220647'); $product->setDescription('

Als Buitengewoon Ambtenaar van de Burgerlijke Stand geef ik, in overleg met het bruidspaar, invulling aan de huwelijksceremonie.

'); $product->setType('person'); - //foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -273,17 +285,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://utrecht.trouwplanner.online/images/content/ambtenaar/erik.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('477ea744-47b1-4690-bd2e-c9c15d5cf2d4'); $product = new Product(); $product->setName('Mvr Ike van den Pol'); $product->setSourceOrganization('002220647'); $product->setDescription('

Elkaar het Ja-woord geven, de officiƫle ceremonie. Vaak is dit het romantische hoogtepunt van de trouwdag. Een bijzonder moment, gedeeld met de mensen die je lief zijn. Een persoonlijke ceremonie, passend bij jullie relatie. Alles is bespreekbaar en maatwerk. Een originele trouwplechtigheid waar muziek, sprekers en kinderen een rol kunnen spelen. Een ceremonie met inhoud, ernst en humor, een traan en een lach, stijlvol, spontaan en ontspannen.

'); $product->setType('person'); - //foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -292,17 +308,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://utrecht.trouwplanner.online/images/content/ambtenaar/ike.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('4f7c5d73-0fcb-4363-9ebb-fd47e2209148'); $product = new Product(); $product->setName('Dhr. Rene Gulje'); $product->setSourceOrganization('002220647'); $product->setDescription('

Ik ben Rene Gulje, in 1949 in Amsterdam geboren. Ik studeerde Nederlands aan de UVA en journalistiek aan de HU.

'); $product->setType('person'); - //foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -311,17 +331,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://utrecht.trouwplanner.online/images/content/ambtenaar/rene.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('55af09c8-361b-418a-af87-df8f8827984b'); $product = new Product(); $product->setName('Toegewezen Trouwamberbaar'); $product->setSourceOrganization('002220647'); $product->setDescription('Uw trouwambtenaar wordt toegewezen, over enkele dagen krijgt u bericht van uw toegewezen trouwambtenaar!'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -330,17 +354,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://utrecht.trouwplanner.online/images/content/ambtenaar/Ttrouwambtenaar.jpg'); $product->setMovie('https://www.youtube.com/embed/RkBZYoMnx5w'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('5a0ad366-9f10-4002-adcb-bac47143b93b'); $product = new Product(); $product->setName('Zelfgekozen BABS'); $product->setSourceOrganization('002220647'); $product->setDescription('U draagt zelf een trouwambtenaar voor en laat deze voor een dag beƫdigen'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('150.00'); $product->setPriceCurrency('EUR'); @@ -349,9 +377,16 @@ public function load(ObjectManager $manager) $product->setLogo('https://utrecht.trouwplanner.online/images/content/ambtenaar/Ttrouwambtenaar.jpg'); $product->setMovie('https://www.youtube.com/embed/RkBZYoMnx5w'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenAmbtenarenUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('7a3489d5-2d2c-454b-91c9-caff4fed897f'); $product = new Product(); $product->setName('Stadskantoor'); $product->setSourceOrganization('002220647'); @@ -360,9 +395,6 @@ public function load(ObjectManager $manager) De ruimte is eenvoudig en toch heel intiem. Het licht is in te stellen op een kleur die jullie graag willen.'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -371,17 +403,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://www.utrecht.nl/fileadmin/uploads/documenten/9.digitaalloket/Burgerzaken/Trouwzaal-Stadskantoor-Utrecht.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('7ebcc7a9-ce12-401b-b3a1-18497c54d79d'); $product = new Product(); $product->setName('Stadhuis kleine zaal'); $product->setSourceOrganization('002220647'); $product->setDescription('Deze uiterst sfeervolle trouwzaal maakt de dag compleet'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -390,17 +426,21 @@ public function load(ObjectManager $manager) $product->setLogo('https://www.utrecht.nl/fileadmin/uploads/documenten/9.digitaalloket/Burgerzaken/kleine-trouwzaal-stadhuis-utrecht.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('9d7c1c5b-3e65-4429-90ec-16e7371f2360'); $product = new Product(); $product->setName('Stadhuis grote zaal'); $product->setSourceOrganization('002220647'); $product->setDescription('Deze uiterst sfeervolle trouwzaal maakt de dag compleet'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -409,17 +449,22 @@ public function load(ObjectManager $manager) $product->setLogo('https://www.utrecht.nl/fileadmin/uploads/documenten/9.digitaalloket/Burgerzaken/grote-trouwzaal-stadhuis-utrecht.jpg'); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + $manager->persist($product); $manager->flush(); $manager->refresh($product); + foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); + $id = Uuid::fromString('c7b556bb-a2f0-471c-9ff9-37543bc4d843'); $product = new Product(); $product->setName('Vrije locatie'); $product->setSourceOrganization('002220647'); $product->setDescription('Vrije locatie'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('0.00'); $product->setPriceCurrency('EUR'); @@ -427,17 +472,21 @@ public function load(ObjectManager $manager) $product->setRequiresAppointment(false); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenLocatiesUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product); + $id = Uuid::fromString('d7bd202b-27ae-4c09-aeb9-3806c5fba504'); $product = new Product(); $product->setName('Trouwboekje'); $product->setSourceOrganization('002220647'); $product->setDescription('Een mooi in leer gebonden herindering aan uw huwelijk'); $product->setType('simple'); - //foreach ([$trouwenUtrecht, $trouwenExtraUtrecht] as $group) { - // $product->addGroup($group); - //} $product->setCatalogue($utrecht); $product->setPrice('30.20'); $product->setPriceCurrency('EUR'); @@ -445,6 +494,12 @@ public function load(ObjectManager $manager) $product->setRequiresAppointment(false); $product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs'); $manager->persist($product); + $product->setId($id); + $manager->persist($product); + foreach ([$trouwenUtrecht, $trouwenExtraUtrecht] as $group) { + $product->addGroup($group); + } + $manager->persist($product); $manager->flush(); $manager->refresh($product);