@@ 174-178 (lines=5) @@ | ||
171 | ||
172 | $size = count($data); |
|
173 | ||
174 | if ($size < 1) { |
|
175 | $this->addErrors(trans('admin.common.csv_invalid_no_data')); |
|
176 | ||
177 | return $this->renderWithError($form, $headers, false); |
|
178 | } |
|
179 | ||
180 | $headerSize = count($columnHeaders); |
|
181 | $headerByKey = array_flip(array_map($getId, $headers)); |
|
@@ 579-583 (lines=5) @@ | ||
576 | } |
|
577 | ||
578 | $size = count($data); |
|
579 | if ($size < 1) { |
|
580 | $this->addErrors(trans('admin.common.csv_invalid_no_data')); |
|
581 | ||
582 | return $this->renderWithError($form, $headers, false); |
|
583 | } |
|
584 | $this->entityManager->getConfiguration()->setSQLLogger(null); |
|
585 | $this->entityManager->getConnection()->beginTransaction(); |
|
586 | // CSVファイルの登録処理 |