Skip to content

Commit

Permalink
Adding "ringen" fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Jan 29, 2020
1 parent db6bcd0 commit 4890fd5
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion api/src/DataFixtures/AppFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function load(ObjectManager $manager)
$product = new Product();
$product->setName(v);
$product->setSourceOrganization('002220647');
$product->setDescription('U draagt zelf een trouwambtenaar voor en laat deze voor een dag beëdigd'));
$product->setDescription('U draagt zelf een trouwambtenaar voor en laat deze voor een dag be�digd'));
$product->setType('simple');
$product->setCatalogue($utrecht);
$product->setPrice('150.00');
Expand Down Expand Up @@ -505,6 +505,28 @@ public function load(ObjectManager $manager)
$manager->persist($product);
$manager->flush();
$product = $manager->getRepository('App:Product')->findOneBy(['id'=> $id]);
foreach ([$trouwenUtrecht, $trouwenExtraUtrecht] as $group) {
$product->addGroup($group);
}

$id = Uuid::fromString('1fa3fbbc-0dee-442a-8431-3381b8cbc78a');
$product = new Product();
$product->setName('Ringen');
$product->setSourceOrganization('002220647');
$product->setDescription('Het uitwisselen van ringen tijdens de huwelijksceremonie');
$product->setType('simple');
$product->setCatalogue($utrecht);
$product->setPrice('10.00');
$product->setPriceCurrency('EUR');
$product->setTaxPercentage(0);
$product->setRequiresAppointment(false);
$product->setMovie('https://www.youtube.com/embed/DAaoMvj1Qbs');
$manager->persist($product);
$product->setId($id);
$manager->persist($product);
$manager->flush();
$product = $manager->getRepository('App:Product')->findOneBy(['id'=> $id]);

foreach ([$trouwenUtrecht, $trouwenExtraUtrecht] as $group) {
$product->addGroup($group);
}
Expand Down

0 comments on commit 4890fd5

Please sign in to comment.