public function getIds() { $cursor = $this->_collection->find(); $ret = []; while ($tmp = $cursor->getNext()) { $ret[] = $tmp['_id']; } return $ret; }