/**
  * action create
  *
  * @param \Sle\Accommodation\Domain\Model\Reservation $newReservation
  * @return void
  */
 public function createAction(Reservation $newReservation)
 {
     $this->addFlashMessage(LocalizationUtility::translate('flashMessage.reservation.created', $this->extensionName), '', AbstractMessage::OK);
     $accommodation = $this->accommodationRepository->findByUid($this->settings['ff']['accommodation']);
     if ($accommodation) {
         $newReservation->setAccommodation($accommodation);
     }
     /**
      * @todo: Staus über die FlexFrom auswählbar machen
      */
     $status = $this->statusRepository->findByUid(1);
     if ($status) {
         $newReservation->setStatus($status);
     }
     $this->reservationRepository->add($newReservation);
     $this->sendNotificationMail($newReservation);
     $this->redirect('success');
 }
 /**
  * action list
  *
  * @return void
  */
 public function listAction()
 {
     $accommodations = $this->accommodationRepository->findAll();
     $this->view->assign('accommodations', $accommodations);
 }