FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 451 forks source link

Class "FOS\OAuthServerBundle\Entity\RefreshToken" sub class of "FOS\OAuthServerBundle\Model\RefreshToken" is not a valid entity or mapped super class. #606

Open slik95 opened 5 years ago

slik95 commented 5 years ago

Hello, i have a problem when trying to install FOSOAuthServerBundle on symfony 4.2.

To start I have this error :

The class 'FOS\OAuthServerBundle\Model\RefreshToken' was not found in the chain configured namespaces

So I try to use the custom_mappings in doctrine.yaml by adding this:

FOSOAuthServerBundle:
   is_bundle: true
   type: annotation

Then I have

Class "FOS\OAuthServerBundle\Entity\RefreshToken" sub class of "FOS\OAuthServerBundle\Model\RefreshToken" is not a valid entity or mapped super class.

Can you help me please?