Actions
Bug #80318
closeddbal rename mapFieldNames doesn't work for more than one record/row
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-03-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The rename of the return array doesn't work correctly.
If you get more then on record/row from the external database, only the first record keys (from the return array) will renamed.
So you can't handle the other records/row, especially if u map uid.
It will resu
Setup:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['handlerCfg'] = array( '_DEFAULT' => array( 'type' => 'native', 'config' => array( 'username' => '', 'password' => '', 'host' => '', 'database' => '' ) ), 'external_db' => array( 'type' => 'native', 'config' => array( 'username' => 'external_db_user', 'password' => 'external_db_pass', 'host' => 'external_db_host', 'database' => 'external_db_database', ) ), ); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['table2handlerKeys'] = array( 'external_db_table' => 'external_db', ); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['mapping'] = array( 'local_db_table' => array( 'mapTableName' => 'external_db_table', 'mapFieldNames' => array( 'local_db_table_column' => 'external_db_table_column' ) ) );
Actions