Replaced job parameter in User class with individual job types
This commit is contained in:
parent
167bc5b626
commit
6c9e67e078
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user