Skip to content
Snippets Groups Projects
Commit 744702ed authored by Michiel Roos's avatar Michiel Roos Committed by Helmut Hummel
Browse files

[BUGFIX] rdndt getClassSchema() in thawProperties(

getClassSchema() is being called within a foreach loop while the
$className never changes for that call.

Change-Id: I699a1a0ab34d784b7463244f218f4e8a0c0b7a0c
Resolves: #55991
Releases: 6.2
Reviewed-on: https://review.typo3.org/27633
Reviewed-by: Marcin Sągol
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
parent 49252eff
Branches
Tags
No related merge requests found
......@@ -181,6 +181,7 @@ class DataMapper implements \TYPO3\CMS\Core\SingletonInterface {
*/
protected function thawProperties(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, array $row) {
$className = get_class($object);
$classSchema = $this->reflectionService->getClassSchema($className);
$dataMap = $this->getDataMap($className);
$object->_setProperty('uid', (int)$row['uid']);
$object->_setProperty('pid', (int)$row['pid']);
......@@ -198,7 +199,7 @@ class DataMapper implements \TYPO3\CMS\Core\SingletonInterface {
}
$columnMap = $dataMap->getColumnMap($propertyName);
$columnName = $columnMap->getColumnName();
$propertyData = $this->reflectionService->getClassSchema($className)->getProperty($propertyName);
$propertyData = $classSchema->getProperty($propertyName);
$propertyValue = NULL;
if ($row[$columnName] !== NULL) {
switch ($propertyData['type']) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment