fix mapper formats

This commit is contained in:
Dennis Eichhorn 2019-09-28 23:11:05 +02:00
parent 1165f9abc7
commit 376629389d
6 changed files with 33 additions and 33 deletions

View File

@ -33,17 +33,17 @@ final class GSDAddressMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'AdressRowId' => ['name' => 'AdressRowId', 'type' => 'int', 'internal' => 'id'], 'AdressRowId' => ['name' => 'AdressRowId', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'NAME1' => ['name' => 'NAME1', 'type' => 'string', 'internal' => 'name1'], 'NAME1' => ['name' => 'NAME1', 'type' => 'string', 'internal' => 'name1'],
'NAME2' => ['name' => 'NAME2', 'type' => 'string', 'internal' => 'name2'], 'NAME2' => ['name' => 'NAME2', 'type' => 'string', 'internal' => 'name2'],
'NAME3' => ['name' => 'NAME3', 'type' => 'string', 'internal' => 'name3'], 'NAME3' => ['name' => 'NAME3', 'type' => 'string', 'internal' => 'name3'],
'ORT' => ['name' => 'ORT', 'type' => 'string', 'internal' => 'city'], 'ORT' => ['name' => 'ORT', 'type' => 'string', 'internal' => 'city'],
'PLZ' => ['name' => 'PLZ', 'type' => 'string', 'internal' => 'zip'], 'PLZ' => ['name' => 'PLZ', 'type' => 'string', 'internal' => 'zip'],
'STRASSE' => ['name' => 'STRASSE', 'type' => 'string', 'internal' => 'street'], 'STRASSE' => ['name' => 'STRASSE', 'type' => 'string', 'internal' => 'street'],
'LAND' => ['name' => 'LAND', 'type' => 'string', 'internal' => 'country'], 'LAND' => ['name' => 'LAND', 'type' => 'string', 'internal' => 'country'],
'TELEFON' => ['name' => 'TELEFON', 'type' => 'string', 'internal' => 'phone'], 'TELEFON' => ['name' => 'TELEFON', 'type' => 'string', 'internal' => 'phone'],
]; ];
/** /**

View File

@ -33,13 +33,13 @@ final class GSDArticleMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'], 'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'Artikelnummer' => ['name' => 'Artikelnummer', 'type' => 'string', 'internal' => 'number'], 'Artikelnummer' => ['name' => 'Artikelnummer', 'type' => 'string', 'internal' => 'number'],
'Artikelbezeichnung' => ['name' => 'Artikelbezeichnung', 'type' => 'string', 'internal' => 'name1'], 'Artikelbezeichnung' => ['name' => 'Artikelbezeichnung', 'type' => 'string', 'internal' => 'name1'],
'_Artikelbezeichnung2' => ['name' => '_Artikelbezeichnung2', 'type' => 'string', 'internal' => 'name2'], '_Artikelbezeichnung2' => ['name' => '_Artikelbezeichnung2', 'type' => 'string', 'internal' => 'name2'],
'EUWarengruppe' => ['name' => 'EUWarengruppe', 'type' => 'string', 'internal' => 'euCustomId'], 'EUWarengruppe' => ['name' => 'EUWarengruppe', 'type' => 'string', 'internal' => 'euCustomId'],
]; ];
/** /**

View File

@ -34,11 +34,11 @@ final class GSDCostCenterMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], 'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'KST' => ['name' => 'KST', 'type' => 'string', 'internal' => 'costcenter'], 'KST' => ['name' => 'KST', 'type' => 'string', 'internal' => 'costcenter'],
'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'], 'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'],
]; ];
/** /**

View File

@ -34,11 +34,11 @@ final class GSDCostObjectMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], 'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'KTR' => ['name' => 'KTR', 'type' => 'string', 'internal' => 'costobject'], 'KTR' => ['name' => 'KTR', 'type' => 'string', 'internal' => 'costobject'],
'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'], 'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'],
]; ];
/** /**

View File

@ -33,10 +33,10 @@ final class GSDCustomerMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'], 'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'Kundennummer' => ['name' => 'Kundennummer', 'type' => 'string', 'internal' => 'number'], 'Kundennummer' => ['name' => 'Kundennummer', 'type' => 'string', 'internal' => 'number'],
]; ];
protected static array $ownsOne = [ protected static array $ownsOne = [

View File

@ -34,12 +34,12 @@ final class InterfaceManagerMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'exchange_id' => ['name' => 'exchange_id', 'type' => 'int', 'internal' => 'id'], 'exchange_id' => ['name' => 'exchange_id', 'type' => 'int', 'internal' => 'id'],
'exchange_title' => ['name' => 'exchange_title', 'type' => 'string', 'internal' => 'info/name'], 'exchange_title' => ['name' => 'exchange_title', 'type' => 'string', 'internal' => 'info/name'],
'exchange_path' => ['name' => 'exchange_path', 'type' => 'string', 'internal' => 'info/path'], 'exchange_path' => ['name' => 'exchange_path', 'type' => 'string', 'internal' => 'info/path'],
'exchange_version' => ['name' => 'exchange_version', 'type' => 'string', 'internal' => 'info/version'], 'exchange_version' => ['name' => 'exchange_version', 'type' => 'string', 'internal' => 'info/version'],
'exchange_export' => ['name' => 'exchange_export', 'type' => 'bool', 'internal' => 'info/export'], 'exchange_export' => ['name' => 'exchange_export', 'type' => 'bool', 'internal' => 'info/export'],
'exchange_import' => ['name' => 'exchange_import', 'type' => 'bool', 'internal' => 'info/import'], 'exchange_import' => ['name' => 'exchange_import', 'type' => 'bool', 'internal' => 'info/import'],
'exchange_website' => ['name' => 'exchange_website', 'type' => 'string', 'internal' => 'info/website'], 'exchange_website' => ['name' => 'exchange_website', 'type' => 'string', 'internal' => 'info/website'],
]; ];