Skip to content

Commit

Permalink
Enitimanager fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Jan 4, 2020
1 parent d456b4e commit c89254b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions api/src/DataFixtures/AppFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,21 @@ 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'));
$trouwenExtraUtrecht = $manager->getRepository('App:Group')->findBy(array('id'=> 'f8298a12-91eb-46d0-b8a9-e7095f81be6f'));
$trouwenCeremoniersUtrecht= $manager->getRepository('App:Group')->findBy(array('id'=> '1cad775c-c2d0-48af-858f-a12029af24b3'));
$trouwenLocatiesUtrecht= $manager->getRepository('App:Group')->findBy(array('id'=> '170788e7-b238-4c28-8efc-97bdada02c2e'));
$trouwenAmbtenarenUtrecht= $manager->getRepository('App:Group')->findBy(array('id'=> '7f4ff7ae-ed1b-45c9-9a73-3ed06a36b9cc'));
$trouwenUtrecht = $manager->getRepository('App:Group')->findBy(array('id'=> '0c1f993d-f9e2-46c5-8d83-0b6dfb702069'));
$burgerzakenUtrecht = $manager->getRepository('App:Group')->findBy(array('id'=> '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);
//}
foreach ([$trouwenUtrecht,$trouwenCeremoniersUtrecht] as $group) {
$trouwen->addGroup($group);
}
$trouwen->setCatalogue($utrecht);
$trouwen->setPrice('627.00');
$trouwen->setPriceCurrency('EUR');
Expand Down

0 comments on commit c89254b

Please sign in to comment.