[TYPO3-dev] Help needed with DBAL

Georg Ringer mail-spam at ringerge.org
Thu Mar 8 16:29:55 CET 2007


Hello,

I want to try something out with DBAL which doesn't work :(
I only need/got 1 DB and all what I really need is the mapping of some 
tablenames. So that a query like this works:

=>  SELECT name FROM fe_users WHERE name = '--';

My settings
$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array (
        '_DEFAULT' => array (
            'type' => 'native',
            'config' => array(
                'driver' => 'mysql',
            )
        ) );

$TYPO3_CONF_VARS['EXTCONF']['dbal']['mapping'] = array (
        'fe_users' => array (
            'mapTableName' => 'fe_users',
            'mapFieldNames' => array (
                'username' => 'name',
            )

        )

    );

=============
What is wrong?

thx
Georg




More information about the TYPO3-dev mailing list