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->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);