/**
  * @param $userId
  * @param $tokenString
  * @return AccessToken|null
  */
 protected function findAccessToken($userId, $tokenString)
 {
     $qb = $this->accessTokenRepository->createQueryBuilder('a');
     $query = $qb->select()->innerJoin('a.user', 'u', 'WITH', 'u.id = :user_id')->where('a.token = :token_string')->setParameter('user_id', $userId)->setParameter('token_string', $tokenString)->getQuery();
     return $query->getOneOrNullResult();
 }