Skip to content

Commit

Permalink
Allow to import the same field multiple times
Browse files Browse the repository at this point in the history
This allows adding multiple elements to relations
  • Loading branch information
MisatoTremor committed Jul 17, 2019
1 parent cf963c8 commit 664fdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Import/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function init($file, $class, $delimiter = ',', $headerFormat = 'title'):
*/
public function import($fields): void
{
$fields = array_unique($this->caseConverter->toPascalCase($fields));
$fields = $this->caseConverter->toPascalCase($fields);
while ($row = $this->reader->getRow()) {
if (0 !== $this->importCount && 0 === ($this->importCount % $this->batchSize)) {
$result = $this->addRow($row, $fields, true);
Expand Down

0 comments on commit 664fdd2

Please sign in to comment.