doctrine/mongodb-odm — Issue #253: Access level to Doctrine\ODM\MongoDB\Cursor::$hints must be protected (as in class Doctrine\MongoDB\Cursor) or weaker
Author: dunglas
Created: 2012-02-14 08:36:01+00:00
State: open

$hints is protected in Doctrine\MongoDB\Cursor and private in Doctrine\ODM\MongoDB\Cursor so it throws an error :

Fatal error: Access level to Doctrine\ODM\MongoDB\Cursor::$hints must be protected (as in class Doctrine\MongoDB\Cursor) or weaker in /Users/dunglas/Documents/workspace/winiti/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Cursor.php on line 128

A solution is simply to remove $hints from Doctrine\ODM\MongoDB\Cursor as the variable is already define in the super class.