diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index e96342c..bc81b7a 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -80,11 +80,14 @@ class RegistrationController extends AbstractController ) ); - $user->setJob(JobType::ADMIN); - $user->setRateType(RateType::FIXED); - $user->setRate('0.00'); - $user->setRoles(['ROLE_ADMIN']); - $user->setLevel(CaseLevel::ADMIN); + $user->setCaseWorker(true) + ->setCaseManager(true) + ->setTherapist(true) + ->setSu(true) + ->setRateType(RateType::FIXED) + ->setRate('0.00') + ->setRoles(['ROLE_ADMIN']) + ->setLevel(CaseLevel::ADMIN); // save user $this->entityManager->persist($user);