[+BUGFIX] Extbase (Persistence): Extbase respects the default value for maxitems...
authorJochen Rau <j.rau@web.de>
Thu, 8 Apr 2010 09:23:20 +0000 (09:23 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 8 Apr 2010 09:23:20 +0000 (09:23 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapFactory.php

index f4a34e3..f7ddc9c 100644 (file)
@@ -126,7 +126,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapFactory {
                                if (isset($columnConfiguration['MM']) || isset($columnConfiguration['foreign_selector'])) {
                                        $columnMap = $this->setManyToManyRelation($columnMap, $columnConfiguration);
                                } else {
-                                       if ($columnConfiguration['maxitems'] == 1) {
+                                       if (!isset($columnConfiguration['maxitems']) || $columnConfiguration['maxitems'] == 1) {
                                                $columnMap = $this->setOneToOneRelation($columnMap, $columnConfiguration);
                                        } else {
                                                $columnMap = $this->setOneToManyRelation($columnMap, $columnConfiguration);