Improve custom role table, add isPublic property to League table
This commit is contained in:
@@ -56,7 +56,8 @@ class HandleAcceptJoinLeagueRequest
|
||||
throw new HttpException(Response::HTTP_NOT_FOUND,"El usuario con id: $userId no ha sido encontrado.");
|
||||
}
|
||||
$customRoleEntity = new CustomRole();
|
||||
$customRoleEntity->setName($leagueId. Role::LEAGUE_MEMBER->value);
|
||||
$customRoleEntity->setName(Role::LEAGUE_MEMBER->value);
|
||||
$customRoleEntity->setEntityId($leagueId);
|
||||
$customRoleEntity->setUser($requestingUserEntity);
|
||||
$this->entityManager->persist($customRoleEntity);
|
||||
$this->entityManager->flush();
|
||||
|
||||
Reference in New Issue
Block a user