[TASK] Streamline creation of column maps
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Sat, 16 Mar 2013 14:27:42 +0000 (15:27 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 16 Mar 2013 23:15:39 +0000 (00:15 +0100)
commitacd4001ca7e70032095bb69dbc5a75794d78cffa
tree998f4c0bdf84a99f89110e88c3b734b18e706b6c
parent15c9ba335dfd96abb43d6fcc3f2e051f95016bdc
[TASK] Streamline creation of column maps

Currently the datamap factory calls "new ColumnMap" to create
a column map. This is bad as this cannot be mocked at all. A
method that handles the process of creation should be introduced,
also the object manager should be used to create the object.

Important:
This is neither a feature nor a bugfix but as it behaves like a
feature it will not be backported at all!

Releases: 6.1
Resolves: #46354
Change-Id: Ie27da180b05ba11d902da9c11185d41a3a4a8f05
Reviewed-on: https://review.typo3.org/18975
Reviewed-by: Mattias Nilsson
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php