Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
1f241271
Commit
1f241271
authored
May 07, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
e6d32b9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
Connection management - Managing connections.php
manual/docs/Connection management - Managing connections.php
+5
-5
Working with objects - Component overview - Record - Getting record state.php
... - Component overview - Record - Getting record state.php
+1
-3
No files found.
manual/docs/Connection management - Managing connections.php
View file @
1f241271
...
...
@@ -30,7 +30,7 @@ connection when no arguments have been speficied.
\$conn2 = Doctrine_Manager::connection();
//
\$conn2 == \
$conn
//
$conn2 ==
$conn
?>
</code>
...
...
@@ -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
?>
</code>
...
...
@@ -59,8 +59,8 @@ You can change the current connection by calling setCurrentConnection().
<code
type=
"php"
>
\$manager->setCurrentConnection('connection 1');
\$manager->getCurrentConnection(); //
\
$conn
?>
\$manager->getCurrentConnection(); // $conn
</code>
...
...
@@ -76,5 +76,5 @@ special IteratorAggregate interface.
foreach(\$manager as \$conn) {
}
?>
</code>
</code>
manual/docs/Working with objects - Component overview - Record - Getting record state.php
View file @
1f241271
...
...
@@ -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
.
<
code
type
=
"php"
>
$state
=
$record
->
getS
tate
();
$state
=
$record
->
s
tate
();
switch
(
$state
)
:
case
Doctrine_Record
::
STATE_PROXY
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment