security->getUser(); $administrator = $this->accessUtils->findAdminFor($access->getOrganization()); if(!$administrator){ throw new \RuntimeException('administrator_not_found', 404); } $contactPoint = $this->contactPointUtils->getPersonContactPointPrincipal($administrator); if(!$contactPoint){ throw new \RuntimeException('administrator_contact_point_not_found', 404); } $contactPoint->setEmail($data->getEmail()); $this->entityManager->flush(); } public function remove($data, array $context = []) { throw new \RuntimeException('not supported', 500); } }