Resolves #55744: Class TYPO3\CMS\Install\Sql\SchemaMigrator was renamed
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 6 Feb 2014 18:06:04 +0000 (18:06 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Thu, 6 Feb 2014 18:06:04 +0000 (18:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@83673 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Domain/Repository/AbstractEntityRepository.php

index b083cfb..142b362 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2014-02-06  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #55476: Deprecated CSS inclusion
+       * Resolves #55744: Class TYPO3\CMS\Install\Sql\SchemaMigrator was renamed
        
 2014-01-20  Stanislas Rolland  <typo3@sjbr.ca>
 
index 28a271f..06c6868 100644 (file)
@@ -251,8 +251,12 @@ abstract class AbstractEntityRepository extends \TYPO3\CMS\Extbase\Persistence\R
                // Get the information of the table and its fields
                $dataMap = $this->dataMapper->getDataMap($this->objectType);
                $tableName = $dataMap->getTableName();
-
-               $installToolSqlParser = $this->objectManager->get('TYPO3\\CMS\\Install\\Sql\\SchemaMigrator');
+               // Class TYPO3\CMS\Install\Sql\SchemaMigrator was renamed in TYPO3 6.2
+               if (class_exists('TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService')) {
+                       $installToolSqlParser = $this->objectManager->get('TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService');
+               } else {
+                       $installToolSqlParser = $this->objectManager->get('TYPO3\\CMS\\Install\\Sql\\SchemaMigrator');
+               }
                $dbFieldDefinitions = $installToolSqlParser->getFieldDefinitions_database();
                $dbFields = array();
                $dbFields[$tableName] = $dbFieldDefinitions[$tableName];