/**
  * This method will get a model object that is populated with the data from the post. We are overriding this
  * method in order to set the user ID to the currently logged in user.
  *
  * @param Request $request
  * @return Question
  */
 protected function getObjectFromRequest(Request $request)
 {
     $question = parent::getObjectFromRequest($request);
     $user = $this->get('Session')->get('userRecord');
     $question->setAuthUserId($user->getUserId());
     return $question;
 }
 /**
  * This action will return a list of clients.
  *
  * @route /public/training/course
  *
  * @Route("/course")
  * @Method({"GET"})
  *
  * @param Request $request
  */
 public function getAction(Request $request)
 {
     return parent::getAction($request);
 }