diff --git a/manual/docs/Connection management - Managing connections.php b/manual/docs/Connection management - Managing connections.php index a65c3b037..7c9e6ebc0 100644 --- a/manual/docs/Connection management - Managing connections.php +++ b/manual/docs/Connection management - Managing connections.php @@ -8,7 +8,7 @@ connection alias. // Doctrine_Manager controls all the connections -\$manager = Doctrine_Manager::getInstance(); +$manager = Doctrine_Manager::getInstance(); // open first connection @@ -25,9 +25,9 @@ connection when no arguments have been speficied. // open first connection -\$conn = Doctrine_Manager::connection(new PDO('dsn','username','password'), 'connection 1'); +$conn = Doctrine_Manager::connection(new PDO('dsn','username','password'), 'connection 1'); -\$conn2 = Doctrine_Manager::connection(); +$conn2 = Doctrine_Manager::connection(); // $conn2 == $conn @@ -43,9 +43,9 @@ The current connection is the lastly opened connection. // open second connection -\$conn2 = \$manager->openConnection(new PDO('dsn2','username2','password2'), 'connection 2'); +$conn2 = $manager->openConnection(new PDO('dsn2','username2','password2'), 'connection 2'); -\$manager->getCurrentConnection(); // $conn2 +$manager->getCurrentConnection(); // $conn2 @@ -55,9 +55,9 @@ You can change the current connection by calling setCurrentConnection(). -\$manager->setCurrentConnection('connection 1'); +$manager->setCurrentConnection('connection 1'); -\$manager->getCurrentConnection(); // $conn +$manager->getCurrentConnection(); // $conn @@ -71,7 +71,7 @@ special IteratorAggregate interface. // iterating through connections -foreach(\$manager as \$conn) { +foreach($manager as $conn) { }