private function commitPersisted()
    {
        $sortedDocuments = $this->sortObjects($this->scheduledForPersist);
        $client = $this->sm->getClient();

        foreach ($sortedDocuments as $entityName => $documents) {
            $classMetadata = $this->sm->getClassMetadata($entityName);
            $this->updatedIndexes[] = $classMetadata->index;
            $client->addDocuments($classMetadata, $documents);
        }
    }
private function commitPersisted()
    {
        $sortedDocuments = $this->sortObjects($this->scheduledForPersist);
        $client = $this->sm->getClient();

        foreach ($sortedDocuments as $entityName => $documents) {
            $classMetadata = $this->sm->getClassMetadata($entityName);
            $this->updatedIndexes[] = $classMetadata->index;
            $client->addDocuments($classMetadata, $documents);
        }
    }
private function commitPersisted ( ) { $ sortedDocuments = $ this -> sortObjects ( $ this -> scheduledForPersist ) ; $ client = $ this -> sm -> getClient ( ) ; foreach ( $ sortedDocuments as $ entityName => $ documents ) { $ classMetadata = $ this -> sm -> getClassMetadata ( $ entityName ) ; $ this -> updatedIndexes [ ] = $ classMetadata -> index ; $ client -> addDocuments ( $ classMetadata , $ documents ) ; } }
Commit persisted entities to the database
Commit persisted entities to the database