Commit eedfb40e authored by zYne's avatar zYne

Module constructor no longed needs Connection object

parent 281b30fb
...@@ -43,7 +43,10 @@ class Doctrine_Connection_Module { ...@@ -43,7 +43,10 @@ class Doctrine_Connection_Module {
* @param Doctrine_Connection $conn Doctrine_Connection object, every connection * @param Doctrine_Connection $conn Doctrine_Connection object, every connection
* module holds an instance of Doctrine_Connection * module holds an instance of Doctrine_Connection
*/ */
public function __construct(Doctrine_Connection $conn) { public function __construct($conn = null) {
if( ! ($conn instanceof Doctrine_Connection))
$conn = Doctrine_Manager::getInstance()->getCurrentConnection();
$this->conn = $conn; $this->conn = $conn;
$e = explode('_', get_class($this)); $e = explode('_', get_class($this));
......
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