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->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);
|
||||||
|
Loading…
Reference in New Issue
Block a user