Project

General

Profile

Bug #50383 ยป patch_commit_119fc407b7d7.patch

Daniel Ostmann, 2013-07-29 13:59

View differences:

typo3/sysext/extbase/Classes/Domain/Model/File.php
protected $fileRepository;
/**
* @var int
*/
protected $type;
/**
* @return \TYPO3\CMS\Core\Resource\File
*/
public function getOriginalResource() {
......
return $this->originalResource;
}
/**
* @return int
*/
public function getType() {
return $this->type;
}
}
?>
typo3/sysext/extbase/Classes/Domain/Model/FileReference.php
protected $fileRepository;
/**
* @var \TYPO3\CMS\Extbase\Domain\Model\File
*/
protected $uidLocal;
/**
* @return \TYPO3\CMS\Core\Resource\FileReference
*/
public function getOriginalResource() {
......
return $this->originalResource;
}
/**
* @return \TYPO3\CMS\Extbase\Domain\Model\File
*/
public function getUidLocal() {
return $this->uidLocal;
}
}
?>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
$recordTypeStatements = array();
foreach ($recordTypes as $recordType) {
$tableName = $dataMap->getTableName();
$recordTypeStatements[] = $tableName . '.' . $dataMap->getRecordTypeColumnName() . '=' . $this->databaseHandle->fullQuoteStr($recordType, $tableName);
if (strpos($dataMap->getRecordTypeColumnName(), ':')) {
$recordTypePath = explode(':', $dataMap->getRecordTypeColumnName());
$rightSelectorType = $this->dataMapper->getType($className, \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToLowerCamelCase($recordTypePath[0]));
$rightTableName = $this->dataMapper->convertClassNameToTableName($rightSelectorType);
$sql['unions'][$rightTableName] = 'LEFT JOIN ' . $rightTableName;
$sql['unions'][$rightTableName] .= ' ON ' . $tableName . '.' . $recordTypePath[0] . ' = ' . $rightTableName . '.uid';
$recordTypeStatements[] = $rightTableName . '.' . $recordTypePath[1] . '=' . $this->databaseHandle->fullQuoteStr($recordType, $tableName);
} else {
$recordTypeStatements[] = $tableName . '.' . $dataMap->getRecordTypeColumnName() . '=' . $this->databaseHandle->fullQuoteStr($recordType, $tableName);
}
}
$sql['additionalWhereClause'][] = '(' . implode(' OR ', $recordTypeStatements) . ')';
}
    (1-1/1)