Doctrine\ODM\MongoDB\Aggregation\Builder::prepareCursor PHP Method

prepareCursor() private method

private prepareCursor ( Doctrine\MongoDB\CommandCursor $cursor ) : CommandCursor
$cursor Doctrine\MongoDB\CommandCursor
return Doctrine\ODM\MongoDB\CommandCursor
    private function prepareCursor(BaseCommandCursor $cursor)
    {
        $class = null;
        if ($this->hydrationClass) {
            $class = $this->dm->getClassMetadata($this->hydrationClass);
        }
        return new CommandCursor($cursor, $this->dm->getUnitOfWork(), $class);
    }