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