Пример #1
0
 public function getNext()
 {
     $next = $this->cursor->getNext();
     if ($next !== null) {
         $next = Artera_Mongo::createDocument($next, $this->collection->getName());
     }
     return $next;
 }
Пример #2
0
 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;
 }