Commit a65e106e authored by chtito's avatar chtito

fixed typo

parent 2d297923
......@@ -137,7 +137,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
}
/**
* connection
* a short cut for Doctrine_Manager::getInstance()->openConnection($dbh);
* a short cut for Doctrine_Manager::getInstance()->openConnection($adapter, $name);
*
* @param PDO|Doctrine_Adapter_Interface $adapter database driver
* @param string $name name of the connection, if empty numeric key is used
......@@ -145,7 +145,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
* @return Doctrine_Connection
*/
public static function connection($adapter, $name = null) {
return Doctrine_Manager::getInstance()->openConnection($dbh);
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