Correction suite changement nom bd giant vers giantclient

This commit is contained in:
Damien LASSERRE 2011-03-30 14:09:36 +00:00
parent 7bd2e462c5
commit 18b59534ab
3 changed files with 4 additions and 4 deletions

View File

@ -32,9 +32,9 @@ $giant->setCharset('utf8');
Doctrine::loadModels(MODELS_PATH . DIRECTORY_SEPARATOR . 'giantclient');
*/
// Utilisation de la connection a la base de donnée pour giant.
$giantPrice = Doctrine_Manager::connection(DSN . '/giant', 'giant');
$giantPrice = Doctrine_Manager::connection(DSN . '/giantclient', 'giantclient');
$giantPrice->setCharset('utf8');
Doctrine::loadModels(MODELS_PATH . DIRECTORY_SEPARATOR . 'giant');
Doctrine::loadModels(MODELS_PATH . DIRECTORY_SEPARATOR . 'giantclient');
function setDbConn($name){
global $manager;

View File

@ -38,7 +38,7 @@ $identiteSociete->VatNumber = $informations->Results->Company[0]->VatNumber;
$identiteSociete->CompanyWebSite = $informations->Results->Company[0]->CompanyWebSite;
$identiteSociete->CompanyEmail = $informations->Results->Company[0]->CompanyEmail;
setDbConn('giant');
setDbConn('giantclient');
$info = Doctrine_Query::create()
->select('Login, OrderDateTime, CompanyId, DataSetType')
->from('commande')

View File

@ -6,7 +6,7 @@ require_once ('dbbootstrap.php');
set_time_limit(60);
setDbConn('giant');
setDbConn('giantclient');
$OrderExists = Doctrine_Query::create()
->select('InternalOrderId')
->from('commande')