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;
    }
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;
    }
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 ; }
Find all the scopes by an array of scopes

@param array $scopes
@return mixed|void
Find all the scopes by an array of scopes