Commit 69bce401 authored by Chivy Lim's avatar Chivy Lim

Merge branch 'KIME-4583' into 'master'

Hotfix and improvement



See merge request !19
parents fead7d77 7690902b
...@@ -129,6 +129,13 @@ class SpreadsheetImportService { ...@@ -129,6 +129,13 @@ class SpreadsheetImportService {
return $this; return $this;
} }
/**
* @return \WE\SpreadsheetImport\Domain\Model\SpreadsheetImport
*/
public function getSpreadsheetImport() {
return $this->spreadsheetImport;
}
/** /**
* Returns the annotation properties of the related domain model with the property name as key. * Returns the annotation properties of the related domain model with the property name as key.
* *
...@@ -247,7 +254,7 @@ class SpreadsheetImportService { ...@@ -247,7 +254,7 @@ class SpreadsheetImportService {
continue; continue;
} }
$objectRepository->add($newObject); $objectRepository->add($newObject);
$id = $this->persistenceManager->getIdentifierByObject($object); $id = $this->persistenceManager->getIdentifierByObject($newObject);
$processedObjectIds[] = $id; $processedObjectIds[] = $id;
$this->log(vsprintf('Object %s for record %d inserted.', array($id, $recordNumber)), LOG_INFO); $this->log(vsprintf('Object %s for record %d inserted.', array($id, $recordNumber)), LOG_INFO);
$totalInserted++; $totalInserted++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment