public function updateToken(Token $token, $andFlush = true)
    {
        $this->doctrine->getManager()->persist($token);
        if ($andFlush) {
            $this->doctrine->getManager()->flush();
        }
    }