Changeset 4463 for trunk/lib/Doctrine
- Timestamp:
- 06/02/08 12:35:34 (7 months ago)
- Location:
- trunk/lib/Doctrine
- Files:
-
- 3 modified
-
Connection/Mysql.php (modified) (2 diffs)
-
Connection/Sqlite.php (modified) (2 diffs)
-
Manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine/Connection/Mysql.php
r3882 r4463 45 45 * @param PDO|Doctrine_Adapter $adapter database handler 46 46 */ 47 public function __construct( Doctrine_Manager $manager, $adapter)47 public function __construct($adapter, $user = null, $pass = null) 48 48 { 49 49 $this->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); … … 88 88 $this->properties['varchar_max_length'] = 255; 89 89 90 parent::__construct($ manager, $adapter);90 parent::__construct($adapter, $user, $pass); 91 91 } 92 92 -
trunk/lib/Doctrine/Connection/Sqlite.php
r3882 r4463 47 47 * @param PDO $pdo database handle 48 48 */ 49 public function __construct( Doctrine_Manager $manager, $adapter)49 public function __construct($adapter, $user = null, $pass = null) 50 50 { 51 51 $this->supported = array('sequences' => 'emulated', … … 68 68 'pattern_escaping' => false, 69 69 ); 70 parent::__construct($manager, $adapter);70 parent::__construct($adapter, $user, $pass); 71 71 72 72 if ($this->isConnected) { -
trunk/lib/Doctrine/Manager.php
r4456 r4463 326 326 327 327 $className = $drivers[$driverName]; 328 $conn = new $className($ this, $adapter);328 $conn = new $className($adapter); 329 329 $conn->setName($name); 330 330