Skip to content

Commit

Permalink
Added reset product method
Browse files Browse the repository at this point in the history
  • Loading branch information
lsv committed Jan 17, 2014
1 parent ad56d3b commit 51c014f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Datapump/Product/ItemHolder.php
Expand Up @@ -94,6 +94,16 @@ public function setOutput(OutputInterface $output)
$this->output = $output;
return $this;
}

/**
* Resets products
* @return @this
*/
public function resetProducts()
{
$this->products = array();
return $this;
}

/**
* Setup Magmi
Expand Down Expand Up @@ -287,6 +297,8 @@ public function import($debug = false)
} else {
return $output;
}

$this->resetProducts();

return true;

Expand Down

0 comments on commit 51c014f

Please sign in to comment.