public function findScopesByScopes(array $scopes)
    {
        $scopeObjects = $this->em->getRepository('OAuth2ServerBundle:Scope')
            ->createQueryBuilder('a')
            ->where('a.scope in (?1)')
            ->setParameter(1, $scopes)
            ->getQuery()->getResult();

        return $scopeObjects;
    }