/**
  * Delete a Organization in the database.
  *
  * @param VBeeSiteApplication $app
  * @param Request             $request
  *
  * @return Response
  */
 public function deleteAction(VBeeSiteApplication $app, Request $request)
 {
     $organization = $this->retrieveOrganization($request->get('organizationId'));
     $this->getOrganizationManager()->delete($organization);
     return $app->redirect($app->path('admin_organization_list'));
 }
 /**
  * Delete a Person in the database.
  *
  * @param VBeeSiteApplication $app
  * @param Request             $request
  *
  * @return Response
  */
 public function deleteAction(VBeeSiteApplication $app, Request $request)
 {
     $person = $this->retrievePerson($request->get('personId'));
     $experience = $this->retrieveExperience($request->get('experienceId'), $person);
     $this->getExperienceManager()->delete($experience);
     return $app->redirect($app->path('admin_person_show', ['personId' => $person->getId()]));
 }
Esempio n. 3
0
 /**
  * Delete a Person in the database.
  *
  * @param VBeeSiteApplication $app
  * @param Request             $request
  *
  * @return Response
  */
 public function deleteAction(VBeeSiteApplication $app, Request $request)
 {
     $person = $this->retrievePerson($request->get('personId'));
     $study = $this->retrieveStudy($request->get('studyId'), $person);
     $this->getStudyManager()->delete($study);
     return $app->redirect($app->path('admin_person_show', ['personId' => $person->getId()]));
 }