Resolves #45901: Add extbase persistence configuration and field mapping
[TYPO3CMS/Extensions/static_info_tables.git] / Configuration / TypoScript / Extbase / setup.txt
1 config.tx_extbase {
2         persistence {
3                 classes {
4                         SJBR\StaticInfoTables\Domain\Model\Country {
5                                 mapping {
6                                         tableName = static_countries
7                                         columns {
8                                                 cn_address_format.mapOnProperty = addressFormat
9                                                 cn_capital.mapOnProperty = capitalCity
10                                                 cn_currency_iso_3.mapOnProperty = currencyIsoCodeA3
11                                                 cn_currency_iso_nr.mapOnProperty = currencyIsoCodeNumber
12                                                 cn_eu_member.mapOnProperty = euMember
13                                                 cn_iso_2.mapOnProperty = isoCodeA2
14                                                 cn_iso_3.mapOnProperty = isoCodeA3
15                                                 cn_iso_nr.mapOnProperty = isoCodeNumber
16                                                 cn_official_name_local.mapOnProperty = officialNameLocal
17                                                 cn_official_name_en.mapOnProperty = officialNameEn
18                                                 cn_parent_tr_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
19                                                 cn_phone.mapOnProperty = phonePrefix
20                                                 cn_short_local.mapOnProperty = shortNameLocal
21                                                 cn_short_en.mapOnProperty = shortNameEn
22                                                 cn_tldomain.mapOnProperty = topLevelDomain
23                                                 cn_uno_member.mapOnProperty = unMember
24                                                 cn_zone_flag.mapOnProperty = zoneFlag
25                                         }
26                                 }
27                         }
28                         SJBR\StaticInfoTables\Domain\Model\CountryZone {
29                                 mapping {
30                                         tableName = static_country_zones
31                                         columns {
32                                                 zn_country_iso_2.mapOnProperty = countryIsoCodeA2
33                                                 zn_country_iso_3.mapOnProperty = countryIsoCodeA3
34                                                 zn_country_iso_nr.mapOnProperty = countryIsoCodeNumber
35                                                 zn_code.mapOnProperty = isoCode
36                                                 zn_name_local.mapOnProperty = localName
37                                                 zn_name_en.mapOnProperty = nameEn
38                                         }
39                                 }
40                         }
41                         SJBR\StaticInfoTables\Domain\Model\Currency {
42                                 mapping {
43                                         tableName = static_currencies
44                                         columns {
45                                                 cu_decimal_digits.mapOnProperty = decimalDigits
46                                                 cu_decimal_point.mapOnProperty = decimalPoint
47                                                 cu_sub_divisor.mapOnProperty = divisor
48                                                 cu_iso_3.mapOnProperty = isoCodeA3
49                                                 cu_iso_nr.mapOnProperty = isoCodeNumber
50                                                 cu_name_en.mapOnProperty = nameEn
51                                                 cu_sub_name_en.mapOnProperty = subdivisionNameEn
52                                                 cu_sub_symbol_left.mapOnProperty = subdivisionSymbolLeft
53                                                 cu_sub_symbol_right.mapOnProperty = subdivisionSymbolRight
54                                                 cu_symbol_left.mapOnProperty = symbolLeft
55                                                 cu_symbol_right.mapOnProperty = symbolRight
56                                                 cu_thousands_point.mapOnProperty = thousandsPoint
57                                         }
58                                 }
59                         }
60                         SJBR\StaticInfoTables\Domain\Model\Language {
61                                 mapping {
62                                         tableName = static_languages
63                                         columns {
64                                                 lg_collate_locale.mapOnProperty = collatingLocale
65                                                 lg_country_iso_2.mapOnProperty = countryIsoCodeA2
66                                                 lg_constructed.mapOnProperty = constructedLanguage
67                                                 lg_iso_2.mapOnProperty = isoCodeA2
68                                                 lg_name_local.mapOnProperty = localName
69                                                 lg_name_en.mapOnProperty = nameEn
70                                                 lg_sacred.mapOnProperty = sacredLanguage
71                                                 lg_typo3.mapOnProperty = typo3Code
72                                         }
73                                 }
74                         }
75                         SJBR\StaticInfoTables\Domain\Model\Territory {
76                                 mapping {
77                                         tableName = static_territories
78                                         columns {
79                                                 tr_iso_nr.mapOnProperty = unCodeNumber
80                                                 tr_name_en.mapOnProperty = nameEn
81                                                 tr_parent_iso_nr.mapOnProperty = parentTerritoryUnCodeNumber
82                                         }
83                                 }
84                         }
85                 }
86         }
87 }