diff --git a/manual/docs/Connection management - Managing connections.php b/manual/docs/Connection management - Managing connections.php index 1feedaa36..2588583c8 100644 --- a/manual/docs/Connection management - Managing connections.php +++ b/manual/docs/Connection management - Managing connections.php @@ -30,7 +30,7 @@ connection when no arguments have been speficied. \$conn2 = Doctrine_Manager::connection(); -// \$conn2 == \$conn +// $conn2 == $conn ?> @@ -47,7 +47,7 @@ The current connection is the lastly opened connection. \$conn2 = \$manager->openConnection(new PDO('dsn2','username2','password2'), 'connection 2'); -\$manager->getCurrentConnection(); // \$conn2 +\$manager->getCurrentConnection(); // $conn2 ?> @@ -59,8 +59,8 @@ You can change the current connection by calling setCurrentConnection(). \$manager->setCurrentConnection('connection 1'); -\$manager->getCurrentConnection(); // \$conn -?> +\$manager->getCurrentConnection(); // $conn + @@ -76,5 +76,5 @@ special IteratorAggregate interface. foreach(\$manager as \$conn) { } -?> + diff --git a/manual/docs/Working with objects - Component overview - Record - Getting record state.php b/manual/docs/Working with objects - Component overview - Record - Getting record state.php index c822c2d13..c4b7a1c9d 100644 --- a/manual/docs/Working with objects - Component overview - Record - Getting record state.php +++ b/manual/docs/Working with objects - Component overview - Record - Getting record state.php @@ -3,13 +3,11 @@ Every record that is retrieved from database is persistent and every newly creat If a Doctrine_Record is retrieved from database but the only loaded property is its primary key, then this record has a state called proxy. - - Every transient and persistent Doctrine_Record is either clean or dirty. Doctrine_Record is clean when none of its properties are changed and dirty when atleast one of its properties has changed. -$state = $record->getState(); +$state = $record->state(); switch($state): case Doctrine_Record::STATE_PROXY: