Correction suite changement nom bd giant vers giantclient
This commit is contained in:
parent
7bd2e462c5
commit
18b59534ab
@ -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;
|
||||
|
@ -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')
|
||||
|
@ -6,7 +6,7 @@ require_once ('dbbootstrap.php');
|
||||
|
||||
set_time_limit(60);
|
||||
|
||||
setDbConn('giant');
|
||||
setDbConn('giantclient');
|
||||
$OrderExists = Doctrine_Query::create()
|
||||
->select('InternalOrderId')
|
||||
->from('commande')
|
||||
|
Loading…
x
Reference in New Issue
Block a user