Commit 7d7c4707 authored by pookey's avatar pookey

fixing case in files

parent d33e69de
...@@ -9,10 +9,10 @@ $manager = Doctrine_Manager::getInstance(); ...@@ -9,10 +9,10 @@ $manager = Doctrine_Manager::getInstance();
$dbh = new PDO("dsn","username","password"); $dbh = new PDO("dsn","username","password");
$conn = $manager->openConnection(); $conn = $manager->openConnection();
// or if you want to use Doctrine Doctrine_DB and its // or if you want to use Doctrine Doctrine_Db and its
// performance monitoring capabilities // performance monitoring capabilities
$dsn = "schema://username:password@dsn/dbname"; $dsn = "schema://username:password@dsn/dbname";
$dbh = Doctrine_DB::getConnection($dsn); $dbh = Doctrine_Db::getConnection($dsn);
$conn = $manager->openConnection(); $conn = $manager->openConnection();
?> ?>
<?php <?php
$sess = $manager->openConnection(Doctrine_DB::getConnection("schema://username:password@hostname/database")); $sess = $manager->openConnection(Doctrine_Db::getConnection("schema://username:password@hostname/database"));
// get connection state: // get connection state:
switch($sess): switch($sess):
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
(unless the interface is approved not to contain it such as Doctrine_Overloadable). Some examples: (unless the interface is approved not to contain it such as Doctrine_Overloadable). Some examples:
<br \><br \> <br \><br \>
Doctrine_DB_EventListener_Interface <br \> Doctrine_Db_EventListener_Interface <br \>
<br \> <br \>
Doctrine_EventListener_Interface <br \> Doctrine_EventListener_Interface <br \>
</ul> </ul>
...@@ -70,7 +70,7 @@ class Doctrine_UnitTestCase extends UnitTestCase { ...@@ -70,7 +70,7 @@ class Doctrine_UnitTestCase extends UnitTestCase {
$this->manager->setAttribute(Doctrine::ATTR_LISTENER, $this->listener); $this->manager->setAttribute(Doctrine::ATTR_LISTENER, $this->listener);
} else { } else {
//$this->dbh = Doctrine_DB::getConnection(); //$this->dbh = Doctrine_Db::getConnection();
$this->dbh = Doctrine_Db2::getConnection("sqlite::memory:"); $this->dbh = Doctrine_Db2::getConnection("sqlite::memory:");
//$this->dbh = new PDO("sqlite::memory:"); //$this->dbh = new PDO("sqlite::memory:");
......
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