/**
  * 
  */
 public function putLocationsAction(Location $location, Request $request)
 {
     $id = $location->getId();
     echo $id;
     die;
     $location = new Location();
     $location->setId($id);
     $errors = $this->treatAndValidateRequest($location, $request);
     if (count($errors) > 0) {
         return new View($errors, Response::HTTP_UNPROCESSABLE_ENTITY);
     }
     $this->persistAndFlush($location);
     return '';
 }