|
@@ 150-154 (lines=5) @@
|
| 147 |
|
|
| 148 |
|
$size = count($data); |
| 149 |
|
|
| 150 |
|
if ($size < 1) { |
| 151 |
|
$this->addErrors(trans('csvimport.text.error.data_not_found')); |
| 152 |
|
|
| 153 |
|
return $this->renderWithError($form, $headers, false); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
$headerSize = count($columnHeaders); |
| 157 |
|
$headerByKey = array_flip(array_map($getId, $headers)); |
|
@@ 513-517 (lines=5) @@
|
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
$size = count($data); |
| 513 |
|
if ($size < 1) { |
| 514 |
|
$this->addErrors(trans('csvimport.text.error.data_not_found')); |
| 515 |
|
|
| 516 |
|
return $this->renderWithError($form, $headers, false); |
| 517 |
|
} |
| 518 |
|
$this->entityManager->getConfiguration()->setSQLLogger(null); |
| 519 |
|
$this->entityManager->getConnection()->beginTransaction(); |
| 520 |
|
// CSVファイルの登録処理 |