Skip to content

Commit

Permalink
added extra bijrijd shift aan cantus template
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten Haine committed Nov 15, 2024
1 parent 4ee18c8 commit 22c171a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module/CalendarBundle/Controller/Admin/CalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,16 @@ private function addShiftsByEvent(Event $event)
$shiftForm->getHydrator()->hydrate($data)
);

$data['name'] = 'Bijrijden';
$data['description'] = 'Chille in de kar. Locatie van de loods is: Tervuursevest 238. ';
$data['nb_volunteers_min'] = 1;
$data['start_date'] = $endDate . ' 1:00';
$data['end_date'] = $endDate . ' 2:00';

$this->getEntityManager()->persist(
$shiftForm->getHydrator()->hydrate($data)
);

$this->getEntityManager()->flush();
}
}

0 comments on commit 22c171a

Please sign in to comment.