Mise en commentaire fermeture de connection bdd

This commit is contained in:
Michael RICOIS 2009-05-14 16:44:36 +00:00
parent 273238d00b
commit 995f79efe0

View File

@ -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);
} }