Commit 9bed1ba1 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 7a35e676
......@@ -144,8 +144,12 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
* @throws Doctrine_Manager_Exception if trying to bind a connection with an existing name
* @return Doctrine_Connection
*/
public static function connection($adapter, $name = null) {
return Doctrine_Manager::getInstance()->openConnection($adapter, $name);
public static function connection($adapter = null, $name = null) {
if($adapter == null) {
return Doctrine_Manager::getInstance()->getCurrentConnection();
} else {
return Doctrine_Manager::getInstance()->openConnection($adapter, $name);
}
}
/**
* openConnection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment