public function expireAuthorizationCode($code)
    {
        $code = $this->em->getRepository('OAuth2ServerBundle:AuthorizationCode')->find($code);
        $this->em->remove($code);
        $this->em->flush();
    }