diff --git a/Localization/Defaults/CityMapper.php b/Localization/Defaults/CityMapper.php index 88284a7aa..68a72ef21 100644 --- a/Localization/Defaults/CityMapper.php +++ b/Localization/Defaults/CityMapper.php @@ -34,13 +34,13 @@ class CityMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'city_id' => ['name' => 'city_id', 'type' => 'int', 'internal' => 'id'], - 'city_city' => ['name' => 'city_city', 'type' => 'string', 'internal' => 'name'], + 'city_id' => ['name' => 'city_id', 'type' => 'int', 'internal' => 'id'], + 'city_city' => ['name' => 'city_city', 'type' => 'string', 'internal' => 'name'], 'city_country' => ['name' => 'city_country', 'type' => 'string', 'internal' => 'countryCode'], - 'city_state' => ['name' => 'city_state', 'type' => 'string', 'internal' => 'state'], - 'city_postal' => ['name' => 'city_postal', 'type' => 'int', 'internal' => 'postal'], - 'city_lat' => ['name' => 'city_lat', 'type' => 'float', 'internal' => 'lat'], - 'city_long' => ['name' => 'city_long', 'type' => 'float', 'internal' => 'long'], + 'city_state' => ['name' => 'city_state', 'type' => 'string', 'internal' => 'state'], + 'city_postal' => ['name' => 'city_postal', 'type' => 'int', 'internal' => 'postal'], + 'city_lat' => ['name' => 'city_lat', 'type' => 'float', 'internal' => 'lat'], + 'city_long' => ['name' => 'city_long', 'type' => 'float', 'internal' => 'long'], ]; /** diff --git a/Localization/Defaults/CountryMapper.php b/Localization/Defaults/CountryMapper.php index c6e945e1b..4bf36b25d 100644 --- a/Localization/Defaults/CountryMapper.php +++ b/Localization/Defaults/CountryMapper.php @@ -34,11 +34,11 @@ class CountryMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'], - 'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'], - 'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'], - 'country_code3' => ['name' => 'country_code3', 'type' => 'string', 'internal' => 'code3'], - 'country_numeric' => ['name' => 'country_numeric', 'type' => 'int', 'internal' => 'numeric'], + 'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'], + 'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'], + 'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'], + 'country_code3' => ['name' => 'country_code3', 'type' => 'string', 'internal' => 'code3'], + 'country_numeric' => ['name' => 'country_numeric', 'type' => 'int', 'internal' => 'numeric'], 'country_subdevision' => ['name' => 'country_subdevision', 'type' => 'string', 'internal' => 'subdevision'], ]; diff --git a/Localization/Defaults/CurrencyMapper.php b/Localization/Defaults/CurrencyMapper.php index e320f7c5a..b53bdc018 100644 --- a/Localization/Defaults/CurrencyMapper.php +++ b/Localization/Defaults/CurrencyMapper.php @@ -34,11 +34,11 @@ class CurrencyMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'], - 'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'], - 'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'], - 'currency_number' => ['name' => 'currency_number', 'type' => 'int', 'internal' => 'number'], - 'currency_decimal' => ['name' => 'currency_decimal', 'type' => 'int', 'internal' => 'decimals'], + 'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'], + 'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'], + 'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'], + 'currency_number' => ['name' => 'currency_number', 'type' => 'int', 'internal' => 'number'], + 'currency_decimal' => ['name' => 'currency_decimal', 'type' => 'int', 'internal' => 'decimals'], 'currency_countries' => ['name' => 'currency_countries', 'type' => 'string', 'internal' => 'countries'], ]; diff --git a/Localization/Defaults/IbanMapper.php b/Localization/Defaults/IbanMapper.php index 7821d6808..6ea416e99 100644 --- a/Localization/Defaults/IbanMapper.php +++ b/Localization/Defaults/IbanMapper.php @@ -34,11 +34,11 @@ class IbanMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'iban_id' => ['name' => 'iban_id', 'type' => 'int', 'internal' => 'id'], + 'iban_id' => ['name' => 'iban_id', 'type' => 'int', 'internal' => 'id'], 'iban_country' => ['name' => 'iban_country', 'type' => 'string', 'internal' => 'country'], - 'iban_chars' => ['name' => 'iban_chars', 'type' => 'int', 'internal' => 'chars'], - 'iban_bban' => ['name' => 'iban_bban', 'type' => 'string', 'internal' => 'bban'], - 'iban_fields' => ['name' => 'iban_fields', 'type' => 'string', 'internal' => 'fields'], + 'iban_chars' => ['name' => 'iban_chars', 'type' => 'int', 'internal' => 'chars'], + 'iban_bban' => ['name' => 'iban_bban', 'type' => 'string', 'internal' => 'bban'], + 'iban_fields' => ['name' => 'iban_fields', 'type' => 'string', 'internal' => 'fields'], ]; /** diff --git a/Localization/Defaults/LanguageMapper.php b/Localization/Defaults/LanguageMapper.php index a34ca8f7d..b6314c10b 100644 --- a/Localization/Defaults/LanguageMapper.php +++ b/Localization/Defaults/LanguageMapper.php @@ -34,12 +34,12 @@ class LanguageMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'language_id' => ['name' => 'language_id', 'type' => 'int', 'internal' => 'id'], + 'language_id' => ['name' => 'language_id', 'type' => 'int', 'internal' => 'id'], 'language_native' => ['name' => 'language_native', 'type' => 'string', 'internal' => 'name'], - 'language_639_1' => ['name' => 'language_639_1', 'type' => 'string', 'internal' => 'native'], + 'language_639_1' => ['name' => 'language_639_1', 'type' => 'string', 'internal' => 'native'], 'language_639_2T' => ['name' => 'language_639_2T', 'type' => 'string', 'internal' => 'code2'], 'language_639_2B' => ['name' => 'language_639_2B', 'type' => 'string', 'internal' => 'code3Native'], - 'language_639_3' => ['name' => 'language_639_3', 'type' => 'string', 'internal' => 'code3'], + 'language_639_3' => ['name' => 'language_639_3', 'type' => 'string', 'internal' => 'code3'], ]; /** diff --git a/tests/DataStorage/Database/TestModel/BaseModelMapper.php b/tests/DataStorage/Database/TestModel/BaseModelMapper.php index a8219cbd2..bc889ddf3 100644 --- a/tests/DataStorage/Database/TestModel/BaseModelMapper.php +++ b/tests/DataStorage/Database/TestModel/BaseModelMapper.php @@ -25,18 +25,18 @@ class BaseModelMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'test_base_id' => ['name' => 'test_base_id', 'type' => 'int', 'internal' => 'id'], - 'test_base_string' => ['name' => 'test_base_string', 'type' => 'string', 'internal' => 'string'], - 'test_base_int' => ['name' => 'test_base_int', 'type' => 'int', 'internal' => 'int'], - 'test_base_bool' => ['name' => 'test_base_bool', 'type' => 'bool', 'internal' => 'bool'], - 'test_base_null' => ['name' => 'test_base_null', 'type' => 'int', 'internal' => 'null'], - 'test_base_float' => ['name' => 'test_base_float', 'type' => 'float', 'internal' => 'float'], - 'test_base_json' => ['name' => 'test_base_json', 'type' => 'Json', 'internal' => 'json'], - 'test_base_json_serializable' => ['name' => 'test_base_json_serializable', 'type' => 'Json', 'internal' => 'jsonSerializable'], - 'test_base_datetime' => ['name' => 'test_base_datetime', 'type' => 'DateTime', 'internal' => 'datetime'], - 'test_base_datetime_null' => ['name' => 'test_base_datetime_null', 'type' => 'DateTime', 'internal' => 'datetime_null'], - 'test_base_owns_one_self' => ['name' => 'test_base_owns_one_self', 'type' => 'int', 'internal' => 'ownsOneSelf'], - 'test_base_belongs_to_one' => ['name' => 'test_base_belongs_to_one', 'type' => 'int', 'internal' => 'belongsToOne'], + 'test_base_id' => ['name' => 'test_base_id', 'type' => 'int', 'internal' => 'id'], + 'test_base_string' => ['name' => 'test_base_string', 'type' => 'string', 'internal' => 'string'], + 'test_base_int' => ['name' => 'test_base_int', 'type' => 'int', 'internal' => 'int'], + 'test_base_bool' => ['name' => 'test_base_bool', 'type' => 'bool', 'internal' => 'bool'], + 'test_base_null' => ['name' => 'test_base_null', 'type' => 'int', 'internal' => 'null'], + 'test_base_float' => ['name' => 'test_base_float', 'type' => 'float', 'internal' => 'float'], + 'test_base_json' => ['name' => 'test_base_json', 'type' => 'Json', 'internal' => 'json'], + 'test_base_json_serializable' => ['name' => 'test_base_json_serializable', 'type' => 'Json', 'internal' => 'jsonSerializable'], + 'test_base_datetime' => ['name' => 'test_base_datetime', 'type' => 'DateTime', 'internal' => 'datetime'], + 'test_base_datetime_null' => ['name' => 'test_base_datetime_null', 'type' => 'DateTime', 'internal' => 'datetime_null'], + 'test_base_owns_one_self' => ['name' => 'test_base_owns_one_self', 'type' => 'int', 'internal' => 'ownsOneSelf'], + 'test_base_belongs_to_one' => ['name' => 'test_base_belongs_to_one', 'type' => 'int', 'internal' => 'belongsToOne'], ]; /** diff --git a/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php b/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php index 363c7cfb7..77cb44bb4 100644 --- a/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php +++ b/tests/DataStorage/Database/TestModel/BelongsToModelMapper.php @@ -25,8 +25,8 @@ class BelongsToModelMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'test_belongs_to_one_id' => ['name' => 'test_belongs_to_one_id', 'type' => 'int', 'internal' => 'id'], - 'test_belongs_to_one_string' => ['name' => 'test_belongs_to_one_string', 'type' => 'string', 'internal' => 'string'], + 'test_belongs_to_one_id' => ['name' => 'test_belongs_to_one_id', 'type' => 'int', 'internal' => 'id'], + 'test_belongs_to_one_string' => ['name' => 'test_belongs_to_one_string', 'type' => 'string', 'internal' => 'string'], ]; protected static string $table = 'test_belongs_to_one'; diff --git a/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php b/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php index 04ffd4040..ab1c75f7b 100644 --- a/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php +++ b/tests/DataStorage/Database/TestModel/ManyToManyDirectModelMapper.php @@ -25,9 +25,9 @@ class ManyToManyDirectModelMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'test_has_many_direct_id' => ['name' => 'test_has_many_direct_id', 'type' => 'int', 'internal' => 'id'], - 'test_has_many_direct_string' => ['name' => 'test_has_many_direct_string', 'type' => 'string', 'internal' => 'string'], - 'test_has_many_direct_to' => ['name' => 'test_has_many_direct_to', 'type' => 'int', 'internal' => 'to'], + 'test_has_many_direct_id' => ['name' => 'test_has_many_direct_id', 'type' => 'int', 'internal' => 'id'], + 'test_has_many_direct_string' => ['name' => 'test_has_many_direct_string', 'type' => 'string', 'internal' => 'string'], + 'test_has_many_direct_to' => ['name' => 'test_has_many_direct_to', 'type' => 'int', 'internal' => 'to'], ]; protected static string $table = 'test_has_many_direct'; diff --git a/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php b/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php index c66e7a013..0d3291f1a 100644 --- a/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php +++ b/tests/DataStorage/Database/TestModel/ManyToManyRelModelMapper.php @@ -25,8 +25,8 @@ class ManyToManyRelModelMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'test_has_many_rel_id' => ['name' => 'test_has_many_rel_id', 'type' => 'int', 'internal' => 'id'], - 'test_has_many_rel_string' => ['name' => 'test_has_many_rel_string', 'type' => 'string', 'internal' => 'string'], + 'test_has_many_rel_id' => ['name' => 'test_has_many_rel_id', 'type' => 'int', 'internal' => 'id'], + 'test_has_many_rel_string' => ['name' => 'test_has_many_rel_string', 'type' => 'string', 'internal' => 'string'], ]; protected static string $table = 'test_has_many_rel'; diff --git a/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php b/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php index a7ee60289..cb61ae395 100644 --- a/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php +++ b/tests/DataStorage/Database/TestModel/OwnsOneModelMapper.php @@ -25,8 +25,8 @@ class OwnsOneModelMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'test_owns_one_id' => ['name' => 'test_owns_one_id', 'type' => 'int', 'internal' => 'id'], - 'test_owns_one_string' => ['name' => 'test_owns_one_string', 'type' => 'string', 'internal' => 'string'], + 'test_owns_one_id' => ['name' => 'test_owns_one_id', 'type' => 'int', 'internal' => 'id'], + 'test_owns_one_string' => ['name' => 'test_owns_one_string', 'type' => 'string', 'internal' => 'string'], ]; protected static string $table = 'test_owns_one';