private function wrapCursor(Cursor $baseCursor) : Iterator
    {
        return new CachingIterator(new HydratingIterator($baseCursor, $this->dm->getUnitOfWork(), $this->class));
    }
private function wrapCursor(Cursor $baseCursor) : Iterator
    {
        return new CachingIterator(new HydratingIterator($baseCursor, $this->dm->getUnitOfWork(), $this->class));
    }
private function wrapCursor ( Cursor $ baseCursor ) : Iterator { return new CachingIterator ( new HydratingIterator ( $ baseCursor , $ this -> dm -> getUnitOfWork ( ) , $ this -> class ) ) ; }
Wraps the supplied base cursor in the corresponding ODM class.
Wraps the supplied base cursor in the corresponding ODM class .