From 6c9e67e0785f324d5253cc9eda745fb7eb8eb13b Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Mon, 2 Dec 2024 23:59:01 -0500 Subject: [PATCH] Replaced job parameter in User class with individual job types --- src/Controller/RegistrationController.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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);