Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Variable name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Sep 11, 2014
1 parent 4e8ede3 commit 357570a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Search/UnitOfWork.php
Expand Up @@ -149,10 +149,10 @@ public function commit($entity = null)
*/
private function commitPersisted()
{
$documents = $this->sortObjects($this->scheduledForPersist);
$sortedDocuments = $this->sortObjects($this->scheduledForPersist);
$client = $this->sm->getClient();

foreach ($documents as $entityName => $documents) {
foreach ($sortedDocuments as $entityName => $documents) {
$classMetadata = $this->sm->getClassMetadata($entityName);
$this->updatedIndexes[] = $classMetadata->index;
$client->addDocuments($classMetadata, $documents);
Expand Down

0 comments on commit 357570a

Please sign in to comment.