Skip to content

Commit

Permalink
Added bijrijden afbraakrit as shift for cantus template
Browse files Browse the repository at this point in the history
  • Loading branch information
d1ff1cult0 committed Nov 15, 2024
1 parent 0bacc04 commit 499c84f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions module/CalendarBundle/Controller/Admin/CalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,17 @@ private function addShiftsByEvent(Event $event)
$shiftForm->getHydrator()->hydrate($data)
);

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

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

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

0 comments on commit 499c84f

Please sign in to comment.