Skip to content

Commit

Permalink
Fix bug which doesn't delete the row after iteratorion
Browse files Browse the repository at this point in the history
  • Loading branch information
Baachi committed Sep 13, 2015
1 parent e786be6 commit ce5004f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Writer/BatchWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function prepare()
$this->delegate->prepare();

$this->queue = new \SplQueue();
$this->queue->setIteratorMode(\SplDoublyLinkedList::IT_MODE_DELETE);
}

public function writeItem(array $item)
Expand Down

0 comments on commit ce5004f

Please sign in to comment.