/**
  * @param Request $Request
  * @return TrackStudentEvent
  */
 private function createStudentEventFromRequest(Request $Request)
 {
     $TrackStudentEvent = new TrackStudentEvent();
     $TrackStudentEvent->setTrackMeetId($Request->get('trackMeetId'))->setStudentId($Request->get('studentId'))->setHasMedaled($Request->get('medaled'));
     if ($Request->get('trackStudentEventId')) {
         $TrackStudentEvent->setTrackStudentEventId($Request->get('trackStudentEventId'));
     }
     if ($Request->get('overallPlace')) {
         $TrackStudentEvent->setOverallPlace($Request->get('overallPlace'));
     }
     return $TrackStudentEvent;
 }
 /**
  * @param TrackEvent $TrackEvent
  * @param TrackStudentEvent $TrackStudentEvent
  * @return int|string
  */
 public function addAthleteToEvent(TrackEvent $TrackEvent, TrackStudentEvent $TrackStudentEvent)
 {
     if (!$TrackEvent->getTrackEventId()) {
         $TrackStudentEvent->setTrackEventId($this->getMeetEventId($TrackEvent));
     }
     if (!$TrackStudentEvent->getTrackEventId()) {
         return 0;
     }
     return $this->TrackSQL->addStudentEvent($TrackStudentEvent);
 }