[BUGFIX] Fix case of setChildSortByFieldName in DataMapFactory
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 10 Jun 2011 19:23:54 +0000 (21:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 10 Jun 2011 19:23:54 +0000 (21:23 +0200)
Small case-fix in DataMapFactory

Change-Id: Ic438329d4dd2a7a3519bf77d5dd7022e8f4b3adb
Resolves: #27334

typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapFactory.php
typo3/sysext/extbase/Tests/Unit/Persistence/Mapper/DataMapFactoryTest.php

index af264c3..1a577c5 100644 (file)
@@ -231,7 +231,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapFactory implements t3lib_Singleton {
                $columnMap->setTypeOfRelation(Tx_Extbase_Persistence_Mapper_ColumnMap::RELATION_HAS_ONE);
                $columnMap->setChildTableName($columnConfiguration['foreign_table']);
                $columnMap->setChildTableWhereStatement($columnConfiguration['foreign_table_where']);
-               $columnMap->setChildSortbyFieldName($columnConfiguration['foreign_sortby']);
+               $columnMap->setChildSortByFieldName($columnConfiguration['foreign_sortby']);
                $columnMap->setParentKeyFieldName($columnConfiguration['foreign_field']);
                $columnMap->setParentTableFieldName($columnConfiguration['foreign_table_field']);
                return $columnMap;
@@ -249,7 +249,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapFactory implements t3lib_Singleton {
                $columnMap->setTypeOfRelation(Tx_Extbase_Persistence_Mapper_ColumnMap::RELATION_HAS_MANY);
                $columnMap->setChildTableName($columnConfiguration['foreign_table']);
                $columnMap->setChildTableWhereStatement($columnConfiguration['foreign_table_where']);
-               $columnMap->setChildSortbyFieldName($columnConfiguration['foreign_sortby']);
+               $columnMap->setChildSortByFieldName($columnConfiguration['foreign_sortby']);
                $columnMap->setParentKeyFieldName($columnConfiguration['foreign_field']);
                $columnMap->setParentTableFieldName($columnConfiguration['foreign_table_field']);
                return $columnMap;
index 142f856..f75d560 100644 (file)
@@ -173,7 +173,7 @@ class Tx_Extbase_Tests_Unit_Persistence_Mapper_DataMapFactoryTest extends Tx_Ext
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_righttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement')->with($this->equalTo('WHERE 1=1'));
-               $mockColumnMap->expects($this->once())->method('setChildSortbyFieldName')->with($this->equalTo('sorting'));
+               $mockColumnMap->expects($this->once())->method('setChildSortByFieldName')->with($this->equalTo('sorting'));
                $mockColumnMap->expects($this->once())->method('setParentKeyFieldName')->with($this->equalTo('uid_local'));
                $mockColumnMap->expects($this->never())->method('setParentTableFieldName');
                $mockColumnMap->expects($this->never())->method('setRelationTableMatchFields');
@@ -201,7 +201,7 @@ class Tx_Extbase_Tests_Unit_Persistence_Mapper_DataMapFactoryTest extends Tx_Ext
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_lefttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement')->with(NULL);
-               $mockColumnMap->expects($this->once())->method('setChildSortbyFieldName')->with($this->equalTo('sorting_foreign'));
+               $mockColumnMap->expects($this->once())->method('setChildSortByFieldName')->with($this->equalTo('sorting_foreign'));
                $mockColumnMap->expects($this->once())->method('setParentKeyFieldName')->with($this->equalTo('uid_foreign'));
                $mockColumnMap->expects($this->never())->method('setParentTableFieldName');
                $mockColumnMap->expects($this->never())->method('setRelationTableMatchFields');
@@ -228,7 +228,7 @@ class Tx_Extbase_Tests_Unit_Persistence_Mapper_DataMapFactoryTest extends Tx_Ext
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_righttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement');
-               $mockColumnMap->expects($this->once())->method('setChildSortbyFieldName')->with($this->equalTo('sorting'));
+               $mockColumnMap->expects($this->once())->method('setChildSortByFieldName')->with($this->equalTo('sorting'));
                $mockColumnMap->expects($this->once())->method('setParentKeyFieldName')->with($this->equalTo('uid_local'));
                $mockColumnMap->expects($this->never())->method('setParentTableFieldName');
                $mockColumnMap->expects($this->never())->method('setRelationTableMatchFields');
@@ -274,7 +274,7 @@ class Tx_Extbase_Tests_Unit_Persistence_Mapper_DataMapFactoryTest extends Tx_Ext
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_righttable'));
                $mockColumnMap->expects($this->never())->method('setChildTableWhereStatement');
-               $mockColumnMap->expects($this->once())->method('setChildSortbyFieldName')->with($this->equalTo('sorting'));
+               $mockColumnMap->expects($this->once())->method('setChildSortByFieldName')->with($this->equalTo('sorting'));
                $mockColumnMap->expects($this->once())->method('setParentKeyFieldName')->with($this->equalTo('uid_local'));
                $mockColumnMap->expects($this->never())->method('setParentTableFieldName');
                $mockColumnMap->expects($this->never())->method('setRelationTableMatchFields');