diff --git a/src/Controller/DashboardController.php b/src/Controller/DashboardController.php index e93d322..dead06a 100644 --- a/src/Controller/DashboardController.php +++ b/src/Controller/DashboardController.php @@ -14,4 +14,6 @@ class DashboardController extends AbstractController { return $this->render('dashboard/index.html.twig'); } + + } diff --git a/src/Service/RelationService.php b/src/Service/RelationService.php index b3d9bbc..223b5df 100644 --- a/src/Service/RelationService.php +++ b/src/Service/RelationService.php @@ -1 +1,61 @@ setEmployee($employee); + $assignment->setRide($ride); + $assignment->setStartHour($startHour); + $assignment->setEndHour($endHour); + } + + public function setEmployeeSkill(Skill $skill, Employee $employee ) + { + $employeeSkill = new EmployeeSkill(); + + $employeeSkill->setEmployee($employee); + $employeeSkill->setSkill($skill); + } + + public function setMissionCategory(Mission $mission, Category $category ) + { + $missionCategory = new MissionCategory(); + + $missionCategory->setMission($mission); + $missionCategory->setCategory($category); + } + + public function setRepresentation(Ride $ride, Employee $employee,int $count ,\DateTime $date ) + { + $representation = new Representation(); + + $representation->setRide($ride); + $representation->setEmployee($employee); + $representation->setCount($count); + $representation->setDate($date); + } + + public function setRequirement(Skill $skill, Mission $mission ) + { + $requirement = new Requirement(); + + $requirement->setSkill($skill); + $requirement->setMission($mission); + } +}