[BUGFIX] Table tx_staticinfotables_domain_model_language doesn't exist 87/51787/3
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 21 Feb 2017 22:50:14 +0000 (17:50 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 4 Apr 2017 14:38:19 +0000 (16:38 +0200)
Move extbase mapping to ext_typoscript_setup

Change-Id: I4cdc660cde561691b8e2fd2850c3c5e44b1819c3
Resolves: #77144
Reviewed-on: https://review.typo3.org/51787
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Configuration/TypoScript/Extbase/setup.txt [deleted file]
ext_localconf.php
ext_typoscript_setup.txt [new file with mode: 0644]

index 8b05945..b91e17c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Resolves #79648: Call to undefined method SJBR\StaticInfoTables\Domain\Model\Country::getAddessFormat()
        * Resolves #79944: Croatia is not marked as EU country
+       * Resolves #77144: Table 'typo3.tx_staticinfotables_domain_model_language' doesn't exist
 
 2017-01-24  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
diff --git a/Configuration/TypoScript/Extbase/setup.txt b/Configuration/TypoScript/Extbase/setup.txt
deleted file mode 100644 (file)
index fa0d8bc..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-config.tx_extbase {
-       persistence {
-               classes {
-                       SJBR\StaticInfoTables\Domain\Model\Country {
-                               mapping {
-                                       tableName = static_countries
-                                       columns {
-                                               cn_address_format.mapOnProperty = addressFormat
-                                               cn_capital.mapOnProperty = capitalCity
-                                               cn_currency_iso_3.mapOnProperty = currencyIsoCodeA3
-                                               cn_currency_iso_nr.mapOnProperty = currencyIsoCodeNumber
-                                               cn_eu_member.mapOnProperty = euMember
-                                               cn_iso_2.mapOnProperty = isoCodeA2
-                                               cn_iso_3.mapOnProperty = isoCodeA3
-                                               cn_iso_nr.mapOnProperty = isoCodeNumber
-                                               cn_official_name_local.mapOnProperty = officialNameLocal
-                                               cn_official_name_en.mapOnProperty = officialNameEn
-                                               cn_parent_tr_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
-                                               cn_phone.mapOnProperty = phonePrefix
-                                               cn_short_local.mapOnProperty = shortNameLocal
-                                               cn_short_en.mapOnProperty = shortNameEn
-                                               cn_tldomain.mapOnProperty = topLevelDomain
-                                               cn_uno_member.mapOnProperty = unMember
-                                               cn_zone_flag.mapOnProperty = zoneFlag
-                                               cn_country_zones.mapOnProperty = countryZones
-                                               deleted.mapOnProperty = deleted
-                                       }
-                               }
-                       }
-                       SJBR\StaticInfoTables\Domain\Model\CountryZone {
-                               mapping {
-                                       tableName = static_country_zones
-                                       columns {
-                                               zn_country_iso_2.mapOnProperty = countryIsoCodeA2
-                                               zn_country_iso_3.mapOnProperty = countryIsoCodeA3
-                                               zn_country_iso_nr.mapOnProperty = countryIsoCodeNumber
-                                               zn_code.mapOnProperty = isoCode
-                                               zn_name_local.mapOnProperty = localName
-                                               zn_name_en.mapOnProperty = nameEn
-                                               deleted.mapOnProperty = deleted
-                                       }
-                               }
-                       }
-                       SJBR\StaticInfoTables\Domain\Model\Currency {
-                               mapping {
-                                       tableName = static_currencies
-                                       columns {
-                                               cu_decimal_digits.mapOnProperty = decimalDigits
-                                               cu_decimal_point.mapOnProperty = decimalPoint
-                                               cu_sub_divisor.mapOnProperty = divisor
-                                               cu_iso_3.mapOnProperty = isoCodeA3
-                                               cu_iso_nr.mapOnProperty = isoCodeNumber
-                                               cu_name_en.mapOnProperty = nameEn
-                                               cu_sub_name_en.mapOnProperty = subdivisionNameEn
-                                               cu_sub_symbol_left.mapOnProperty = subdivisionSymbolLeft
-                                               cu_sub_symbol_right.mapOnProperty = subdivisionSymbolRight
-                                               cu_symbol_left.mapOnProperty = symbolLeft
-                                               cu_symbol_right.mapOnProperty = symbolRight
-                                               cu_thousands_point.mapOnProperty = thousandsPoint
-                                               deleted.mapOnProperty = deleted
-                                       }
-                               }
-                       }
-                       SJBR\StaticInfoTables\Domain\Model\Language {
-                               mapping {
-                                       tableName = static_languages
-                                       columns {
-                                               lg_collate_locale.mapOnProperty = collatingLocale
-                                               lg_country_iso_2.mapOnProperty = countryIsoCodeA2
-                                               lg_constructed.mapOnProperty = constructedLanguage
-                                               lg_iso_2.mapOnProperty = isoCodeA2
-                                               lg_name_local.mapOnProperty = localName
-                                               lg_name_en.mapOnProperty = nameEn
-                                               lg_sacred.mapOnProperty = sacredLanguage
-                                               lg_typo3.mapOnProperty = typo3Code
-                                               deleted.mapOnProperty = deleted
-                                       }
-                               }
-                       }
-                       SJBR\StaticInfoTables\Domain\Model\Territory {
-                               mapping {
-                                       tableName = static_territories
-                                       columns {
-                                               tr_iso_nr.mapOnProperty = unCodeNumber
-                                               tr_name_en.mapOnProperty = nameEn
-                                               tr_parent_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
-                                               deleted.mapOnProperty = deleted
-                                       }
-                               }
-                       }
-                       SJBR\StaticInfoTables\Domain\Model\SystemLanguage {
-                               mapping {
-                                       tableName = sys_language
-                                       columns {
-                                               title.mapOnProperty = title
-                                               static_lang_isocode.mapOnProperty = isoLanguage
-                                       }
-                               }
-                       }
-               }
-       }
-}
\ No newline at end of file
index fc1991a..732fe87 100644 (file)
@@ -4,9 +4,6 @@ defined('TYPO3_MODE') or die();
 // Get the extensions's configuration
 $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['static_info_tables']);
 
-// Including Extbase configuration
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:static_info_tables/Configuration/TypoScript/Extbase/setup.txt">');
-
 // Register cache static_info_tables
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables'])) {
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_info_tables'] = [];
diff --git a/ext_typoscript_setup.txt b/ext_typoscript_setup.txt
new file mode 100644 (file)
index 0000000..fa0d8bc
--- /dev/null
@@ -0,0 +1,102 @@
+config.tx_extbase {
+       persistence {
+               classes {
+                       SJBR\StaticInfoTables\Domain\Model\Country {
+                               mapping {
+                                       tableName = static_countries
+                                       columns {
+                                               cn_address_format.mapOnProperty = addressFormat
+                                               cn_capital.mapOnProperty = capitalCity
+                                               cn_currency_iso_3.mapOnProperty = currencyIsoCodeA3
+                                               cn_currency_iso_nr.mapOnProperty = currencyIsoCodeNumber
+                                               cn_eu_member.mapOnProperty = euMember
+                                               cn_iso_2.mapOnProperty = isoCodeA2
+                                               cn_iso_3.mapOnProperty = isoCodeA3
+                                               cn_iso_nr.mapOnProperty = isoCodeNumber
+                                               cn_official_name_local.mapOnProperty = officialNameLocal
+                                               cn_official_name_en.mapOnProperty = officialNameEn
+                                               cn_parent_tr_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
+                                               cn_phone.mapOnProperty = phonePrefix
+                                               cn_short_local.mapOnProperty = shortNameLocal
+                                               cn_short_en.mapOnProperty = shortNameEn
+                                               cn_tldomain.mapOnProperty = topLevelDomain
+                                               cn_uno_member.mapOnProperty = unMember
+                                               cn_zone_flag.mapOnProperty = zoneFlag
+                                               cn_country_zones.mapOnProperty = countryZones
+                                               deleted.mapOnProperty = deleted
+                                       }
+                               }
+                       }
+                       SJBR\StaticInfoTables\Domain\Model\CountryZone {
+                               mapping {
+                                       tableName = static_country_zones
+                                       columns {
+                                               zn_country_iso_2.mapOnProperty = countryIsoCodeA2
+                                               zn_country_iso_3.mapOnProperty = countryIsoCodeA3
+                                               zn_country_iso_nr.mapOnProperty = countryIsoCodeNumber
+                                               zn_code.mapOnProperty = isoCode
+                                               zn_name_local.mapOnProperty = localName
+                                               zn_name_en.mapOnProperty = nameEn
+                                               deleted.mapOnProperty = deleted
+                                       }
+                               }
+                       }
+                       SJBR\StaticInfoTables\Domain\Model\Currency {
+                               mapping {
+                                       tableName = static_currencies
+                                       columns {
+                                               cu_decimal_digits.mapOnProperty = decimalDigits
+                                               cu_decimal_point.mapOnProperty = decimalPoint
+                                               cu_sub_divisor.mapOnProperty = divisor
+                                               cu_iso_3.mapOnProperty = isoCodeA3
+                                               cu_iso_nr.mapOnProperty = isoCodeNumber
+                                               cu_name_en.mapOnProperty = nameEn
+                                               cu_sub_name_en.mapOnProperty = subdivisionNameEn
+                                               cu_sub_symbol_left.mapOnProperty = subdivisionSymbolLeft
+                                               cu_sub_symbol_right.mapOnProperty = subdivisionSymbolRight
+                                               cu_symbol_left.mapOnProperty = symbolLeft
+                                               cu_symbol_right.mapOnProperty = symbolRight
+                                               cu_thousands_point.mapOnProperty = thousandsPoint
+                                               deleted.mapOnProperty = deleted
+                                       }
+                               }
+                       }
+                       SJBR\StaticInfoTables\Domain\Model\Language {
+                               mapping {
+                                       tableName = static_languages
+                                       columns {
+                                               lg_collate_locale.mapOnProperty = collatingLocale
+                                               lg_country_iso_2.mapOnProperty = countryIsoCodeA2
+                                               lg_constructed.mapOnProperty = constructedLanguage
+                                               lg_iso_2.mapOnProperty = isoCodeA2
+                                               lg_name_local.mapOnProperty = localName
+                                               lg_name_en.mapOnProperty = nameEn
+                                               lg_sacred.mapOnProperty = sacredLanguage
+                                               lg_typo3.mapOnProperty = typo3Code
+                                               deleted.mapOnProperty = deleted
+                                       }
+                               }
+                       }
+                       SJBR\StaticInfoTables\Domain\Model\Territory {
+                               mapping {
+                                       tableName = static_territories
+                                       columns {
+                                               tr_iso_nr.mapOnProperty = unCodeNumber
+                                               tr_name_en.mapOnProperty = nameEn
+                                               tr_parent_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
+                                               deleted.mapOnProperty = deleted
+                                       }
+                               }
+                       }
+                       SJBR\StaticInfoTables\Domain\Model\SystemLanguage {
+                               mapping {
+                                       tableName = sys_language
+                                       columns {
+                                               title.mapOnProperty = title
+                                               static_lang_isocode.mapOnProperty = isoLanguage
+                                       }
+                               }
+                       }
+               }
+       }
+}
\ No newline at end of file