I am new in mongodb.I run following query and my system will hangs.
$products = $this->get('doctrine_mongodb')
->getManager()
->createQueryBuilder('AcmeStoreBundle:Product')
->field('name')->equals('foo')
->limit(10)
->sort('price', 'ASC')
->getQuery()
->execute();
echo "<pre>";print_r($products);die;
I got this:
Doctrine\ODM\MongoDB\Cursor Object
(
[baseCursor:Doctrine\ODM\MongoDB\Cursor:private] => Doctrine\MongoDB\LoggableCursor Object
(
[loggerCallable:protected] => Array
(
[0] => Doctrine\Bundle\MongoDBBundle\Logger\AggregateLogger Object
(
-----so on
Where is the result?