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