Mise en commentaire fermeture de connection bdd
This commit is contained in:
parent
273238d00b
commit
995f79efe0
@ -28,7 +28,7 @@ function setDbConn($name){
|
|||||||
$currentName = $manager->getCurrentConnection()->getName();
|
$currentName = $manager->getCurrentConnection()->getName();
|
||||||
$currentConn = $manager->getCurrentConnection();
|
$currentConn = $manager->getCurrentConnection();
|
||||||
if($currentName != $name){
|
if($currentName != $name){
|
||||||
$manager->closeConnection($currentConn);
|
//$manager->closeConnection($currentConn);
|
||||||
$manager->setCurrentConnection($name);
|
$manager->setCurrentConnection($name);
|
||||||
Doctrine::loadModels(realpath(dirname(__FILE__)).'/models/'.$name);
|
Doctrine::loadModels(realpath(dirname(__FILE__)).'/models/'.$name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user