Beispiel #1
0
 /**
  * Validate data rows and save bunches to DB
  *
  * @return Mage_ImportExport_Model_Import_Entity_Product
  */
 protected function _saveValidatedBunches()
 {
     $source = $this->_getSource();
     $source->rewind();
     while ($source->valid()) {
         if ($this->_errorsCount >= $this->_errorsLimit) {
             // errors limit check
             return $this;
         }
         $rowData = $source->current();
         $this->validateRow($rowData, $source->key());
         $source->next();
     }
     $this->getOptionEntity()->validateAmbiguousData();
     return parent::_saveValidatedBunches();
 }