Skip to content

Commit

Permalink
Use separate Cursor property for ODM's UoW hints
Browse files Browse the repository at this point in the history
This depends on doctrine/mongodb#105 being merged into a stable 1.1.x release of doctrine/mongodb.
  • Loading branch information
jmikola committed Apr 22, 2013
1 parent 4bbe42a commit 2dabc62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions lib/Doctrine/ODM/MongoDB/Cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2dabc62

Please sign in to comment.