草庐IT

loggablecursor

全部标签

php - Symfony2 的 mongoDB 返回一个 loggablecursor 而不是我的实体

我目前使用DoctrineMongoDbBundle向我的mongodb数据库发出请求。这是我Controller中的调用:$dm=$this->get('doctrine.odm.mongodb.document_manager');$entities=$dm->getRepository('MyBundle:Animal')->findBy(array("prop"=>"1"));echoprint_r($entities->getQuery());echoprintf(count($entities));echoget_class($entities);然后我尝试将$enitit