|
|
@ -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') |
|
|
|