2016-06-28 77 views
0

我正在使用doctrine orm,但不知何故,我得到一個錯誤,發現propel BaseClient沒有找到(通常是由propel自動生成的類)。 要麼是一個錯誤,要麼我做錯了什麼?FosOauthServerBundle Propel BaseClient找不到

fos_oauth_server: 
    db_driver:   orm 
    client_class:  Diligentia\OAuthBundle\Entity\Client 
    access_token_class: Diligentia\OAuthBundle\Entity\AccessToken 
    refresh_token_class: Diligentia\OAuthBundle\Entity\RefreshToken 
    auth_code_class:  Diligentia\OAuthBundle\Entity\AuthCode 
    service: 
     user_provider: fos_user.user_manager 

錯誤:

PHP Fatal error: Class 'FOS\OAuthServerBundle\Propel\om\BaseClient' not found in /var/www/redwood/vendor/friendsofsymfony/oauth-server-bundle/Propel/Client.php on line 19 

Fatal error: Class 'FOS\OAuthServerBundle\Propel\om\BaseClient' not found in /var/www/redwood/vendor/friendsofsymfony/oauth-server-bundle/Propel/Client.php on line 19 
Segmentation fault 

在我看來,它甚至不應該嘗試加載它。

回答

0

predis未與作曲家一起安裝,導致我的緩存無法工作。 由於User Bundle無法獲取我使用的db驅動程序,並將propel作爲默認值導致無關的錯誤,而且我無法長時間找到問題。