protected function useDbProfile($dbProfile)
{
if ($dbProfile == '') {
$dbProfile = 'default';
}
$this->dbProfile = $dbProfile;
// we check if it is an alias
if (file_exists(App::configPath('profiles.ini.php'))) {
$dbprofiles = parse_ini_file(App::configPath('profiles.ini.php'));
if (isset($dbprofiles['jdb'][$dbProfile])) {
$this->dbProfile = $dbprofiles['jdb'][$dbProfile];
}
}
$this->_dbConn = null;
// we force to retrieve a db connection
}