From 2dabc626c4c362153dc6ef2cb5f296bdf900ac7b Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 22 Apr 2013 17:57:05 -0400 Subject: [PATCH] Use separate Cursor property for ODM's UoW hints This depends on doctrine/mongodb#105 being merged into a stable 1.1.x release of doctrine/mongodb. --- composer.json | 2 +- lib/Doctrine/ODM/MongoDB/Cursor.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8a6b936aec..de757d1568 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php": ">=5.3.2", "symfony/console": "~2.0", "doctrine/common": ">=2.2.0,<2.5-dev", - "doctrine/mongodb": "1.0.*" + "doctrine/mongodb": "~1.1" }, "require-dev": { "symfony/yaml": "~2.0" diff --git a/lib/Doctrine/ODM/MongoDB/Cursor.php b/lib/Doctrine/ODM/MongoDB/Cursor.php index f0695aab18..b3d10fdc87 100644 --- a/lib/Doctrine/ODM/MongoDB/Cursor.php +++ b/lib/Doctrine/ODM/MongoDB/Cursor.php @@ -71,6 +71,13 @@ class Cursor extends BaseCursor */ private $class; + /** + * The array of hints for the UnitOfWork. + * + * @var array + */ + private $hints = array(); + /** @override */ public function __construct(Connection $connection, Collection $collection, UnitOfWork $uow, ClassMetadata $class, BaseCursor $baseCursor, array $query = array(), array $fields = array(), $numRetries = 0) {