diff --git a/Classes/Controller/ImportController.php b/Classes/Controller/ImportController.php index f7bfa6d..24f1036 100644 --- a/Classes/Controller/ImportController.php +++ b/Classes/Controller/ImportController.php @@ -130,7 +130,12 @@ public function importAction() { $i = 0; foreach ($row as $col) { if (isset($mapping[$i]) && $mapping[$i] != '___') { - $node->setProperty($mapping[$i], $col); + if ($node->getNodeType()->getPropertyType($mapping[$i]) === 'reference') { + $refNode = $q->find($col)->get(0); + $node->setProperty($mapping[$i], $refNode); + } else { + $node->setProperty($mapping[$i], $col); + } } $i++; }