code: public function getAllDocuments()
      {
          return new DoctrineImportIterator(
              $this->getDoctrineManager()->createQuery("SELECT e FROM {$this->getentityClass()} e")->iterate(),
              $this->getDoctrineManager(),
              $this->getElasticsearchManager()->getRepository($this->getDocumentClass())
          );
      }
docs: Gets all documents by given type.
  
  @return DoctrineImportIterator