public function getNext() { $next = $this->cursor->getNext(); if ($next !== null) { $next = Artera_Mongo::createDocument($next, $this->collection->getName()); } return $next; }
public function getDBRef($ref) { $data = $this->collection->getDBRef($ref); if ($data === null) { return null; } $doc = Artera_Mongo::createDocument($data, $ref['$ref']); $doc->setReference($ref); return $doc; }