diff --git a/src/Command/AddRankCommand.php b/src/Command/AddRankCommand.php index 5146ff0..4bfeadb 100644 --- a/src/Command/AddRankCommand.php +++ b/src/Command/AddRankCommand.php @@ -44,7 +44,7 @@ class AddRankCommand extends Command /** * @var GroupRepository $groupRepository */ - $groupRepository = $this->entityManager->getRepository("App:Group"); + $groupRepository = $this->entityManager->getRepository(Group::class); if ($groupid && null === $groupRepository->find($groupid)) { $groupid = ''; @@ -64,7 +64,7 @@ class AddRankCommand extends Command ); } global $groupRepository; - if (null === $this->entityManager->getRepository("App:Group")->find($answer)) { + if (null === $this->entityManager->getRepository(Group::class)->find($answer)) { throw new \RuntimeException( 'No group find for this id' ); diff --git a/src/Command/AddUserCommand.php b/src/Command/AddUserCommand.php index 86f2c0a..893e32c 100644 --- a/src/Command/AddUserCommand.php +++ b/src/Command/AddUserCommand.php @@ -103,7 +103,7 @@ class AddUserCommand extends Command /** * @var GroupRepository $groupRepository */ - $groupRepository = $this->entityManager->getRepository("App:Group"); + $groupRepository = $this->entityManager->getRepository(Group::class); if ($groupid && null === $groupRepository->find($groupid)) { $groupid = ''; @@ -123,7 +123,7 @@ class AddUserCommand extends Command ); } global $groupRepository; - if (null === $this->entityManager->getRepository("App:Group")->find($answer)) { + if (null === $this->entityManager->getRepository(Group::class)->find($answer)) { throw new \RuntimeException( 'No group find for this id' );