Replaced job parameter in User class with individual job types

This commit is contained in:
Ryan Prather 2024-12-02 23:59:01 -05:00
parent 167bc5b626
commit 6c9e67e078

View File

@ -80,11 +80,14 @@ class RegistrationController extends AbstractController
) )
); );
$user->setJob(JobType::ADMIN); $user->setCaseWorker(true)
$user->setRateType(RateType::FIXED); ->setCaseManager(true)
$user->setRate('0.00'); ->setTherapist(true)
$user->setRoles(['ROLE_ADMIN']); ->setSu(true)
$user->setLevel(CaseLevel::ADMIN); ->setRateType(RateType::FIXED)
->setRate('0.00')
->setRoles(['ROLE_ADMIN'])
->setLevel(CaseLevel::ADMIN);
// save user // save user
$this->entityManager->persist($user); $this->entityManager->persist($user);