2011-12-15 34 views
1

我在生產環境中遇到問題。爲什麼在我的生產環境中出現 - > findBy()錯誤?

$repo = $em->getRepository('QuiQonCoreBundle:Speciality'); 

==> $entities = $repo->findBy(array('regSpecGroup'=> 3)); 
    /*(3 is hardcoded to show that even with this value, the framework is returning an exception(*/ 

    return $entities; 

我無法看到拋出了什麼異常。

這是通過XmlHttpRequest()調用。

有人遇到同樣的問題嗎?

回答

0

您的數據庫在prod環境中配置合理嗎?做這個之前你是否嘗試clear:cache --env=prod?它應該工作。

+0

嗨,謝謝你的回答。是的,我的數據庫配置得很好。事實上,我所顯示的代碼只有在請求來自瀏覽器時纔會失敗,因爲應用程序加載時,此代碼執行得很好。 – user1100067 2011-12-15 15:39:56

相關問題