Correction models path

This commit is contained in:
Michael RICOIS 2010-04-21 15:59:06 +00:00
parent 6b51b03f6c
commit 857d8422ac

View File

@ -34,7 +34,7 @@ function setDbConn($name){
//$currentConn = $manager->getCurrentConnection();
//$manager->closeConnection($currentConn);
$manager->setCurrentConnection($name);
Doctrine::loadModels(realpath(dirname(__FILE__)).'/dbmodels/'.$name);
Doctrine::loadModels(MODELS_PATH . DIRECTORY_SEPARATOR . $name);
}
}