* Return the overall Modality list.
  *
  * @ApiDoc(
  *   resource = true,
  *   description = "Return the overall Modality List",
  *   statusCodes = {
  *     200 = "Returned when successful",
  *     404 = "Returned when the user is not found"
  *   }
  * )
  *
  * @Get("/modality")
  * @return string $type_material
  * @View()
  */
 public function getModalitiesAction()
 {
     $em = $this->getDoctrine()->getManager();
     $entity = $em->getRepository('MCBundle:Modality')->findAll();
     if (!$entity) {
         throw $this->createNotFoundException('Data not found.');