diff --git a/includes/dbbootstrap.php b/includes/dbbootstrap.php index 622ace1a0..aeb99244f 100644 --- a/includes/dbbootstrap.php +++ b/includes/dbbootstrap.php @@ -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; diff --git a/includes/giant/IdentiteGiant.php b/includes/giant/IdentiteGiant.php index ab7a78415..9e6577a31 100644 --- a/includes/giant/IdentiteGiant.php +++ b/includes/giant/IdentiteGiant.php @@ -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') diff --git a/includes/giant/RapportGiant.php b/includes/giant/RapportGiant.php index 7f9e56ad1..fb39dea8d 100644 --- a/includes/giant/RapportGiant.php +++ b/includes/giant/RapportGiant.php @@ -6,7 +6,7 @@ require_once ('dbbootstrap.php'); set_time_limit(60); -setDbConn('giant'); +setDbConn('giantclient'); $OrderExists = Doctrine_Query::create() ->select('InternalOrderId') ->from('commande')