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()
調用。
有人遇到同樣的問題嗎?
嗨,謝謝你的回答。是的,我的數據庫配置得很好。事實上,我所顯示的代碼只有在請求來自瀏覽器時纔會失敗,因爲應用程序加載時,此代碼執行得很好。 – user1100067 2011-12-15 15:39:56