mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
update method names
This commit is contained in:
parent
ffa59d6f82
commit
6752b7b93e
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ class UserRepository extends ServiceEntityRepository
|
||||||
parent::__construct($registry, User::class);
|
parent::__construct($registry, User::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findOneByIdField(int $id): ?User
|
public function getUser(int $id): ?User
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('u')
|
return $this->createQueryBuilder('u')
|
||||||
->where('u.id = :id')
|
->where('u.id = :id')
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class UserService
|
||||||
|
|
||||||
public function get(int $id): ?User
|
public function get(int $id): ?User
|
||||||
{
|
{
|
||||||
return $this->userRepository->findOneByIdField($id);
|
return $this->userRepository->getUser($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function identicon(
|
public function identicon(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue