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
e89a841b
Commit
e89a841b
authored
Apr 14, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
56071894
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
Batch.class.php
classes/Collection/Batch.class.php
+0
-2
Record.class.php
classes/Record.class.php
+16
-16
run.php
tests/run.php
+4
-2
No files found.
classes/Collection/Batch.class.php
View file @
e89a841b
...
@@ -110,7 +110,6 @@ class Doctrine_Collection_Batch extends Doctrine_Collection {
...
@@ -110,7 +110,6 @@ class Doctrine_Collection_Batch extends Doctrine_Collection {
while
(
$row
=
$stmt
->
fetch
(
PDO
::
FETCH_ASSOC
))
:
while
(
$row
=
$stmt
->
fetch
(
PDO
::
FETCH_ASSOC
))
:
$this
->
table
->
setData
(
$row
);
$this
->
table
->
setData
(
$row
);
if
(
is_object
(
$this
->
data
[
$e
]))
{
if
(
is_object
(
$this
->
data
[
$e
]))
{
$this
->
data
[
$e
]
->
factoryRefresh
(
$this
->
table
);
$this
->
data
[
$e
]
->
factoryRefresh
(
$this
->
table
);
}
else
{
}
else
{
...
@@ -159,7 +158,6 @@ class Doctrine_Collection_Batch extends Doctrine_Collection {
...
@@ -159,7 +158,6 @@ class Doctrine_Collection_Batch extends Doctrine_Collection {
if
(
!
isset
(
$this
->
data
[
$key
]))
if
(
!
isset
(
$this
->
data
[
$key
]))
$this
->
data
[
$key
]
=
$this
->
table
->
create
();
$this
->
data
[
$key
]
=
$this
->
table
->
create
();
}
}
...
...
classes/Record.class.php
View file @
e89a841b
...
@@ -386,28 +386,28 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
...
@@ -386,28 +386,28 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
if
(
!
$this
->
loaded
)
{
if
(
!
$this
->
loaded
)
{
// no use trying to load the data from database if the Doctrine_Record is new or clean
// no use trying to load the data from database if the Doctrine_Record is new or clean
if
(
$this
->
state
!=
Doctrine_Record
::
STATE_TDIRTY
&&
if
(
$this
->
state
!=
Doctrine_Record
::
STATE_TDIRTY
&&
$this
->
state
!=
Doctrine_Record
::
STATE_TCLEAN
&&
$this
->
state
!=
Doctrine_Record
::
STATE_TCLEAN
&&
$this
->
state
!=
Doctrine_Record
::
STATE_CLEAN
)
{
$this
->
state
!=
Doctrine_Record
::
STATE_CLEAN
)
{
$this
->
loaded
=
true
;
$this
->
loaded
=
true
;
if
(
!
empty
(
$this
->
collections
))
{
if
(
!
empty
(
$this
->
collections
))
{
foreach
(
$this
->
collections
as
$collection
)
{
foreach
(
$this
->
collections
as
$collection
)
{
$collection
->
load
(
$this
);
$collection
->
load
(
$this
);
}
}
else
{
$this
->
refresh
();
}
}
}
else
{
$this
->
state
=
Doctrine_Record
::
STATE_CLEAN
;
$this
->
refresh
();
}
}
$this
->
state
=
Doctrine_Record
::
STATE_CLEAN
;
}
}
if
(
is_array
(
$this
->
data
[
$name
]))
if
(
is_array
(
$this
->
data
[
$name
]))
return
null
;
return
null
;
}
return
null
;
}
}
return
$this
->
data
[
$name
];
return
$this
->
data
[
$name
];
}
}
...
...
tests/run.php
View file @
e89a841b
...
@@ -32,13 +32,15 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
...
@@ -32,13 +32,15 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
$test
->
addTestCase
(
new
Doctrine_EventListenerTestCase
());
$test
->
addTestCase
(
new
Doctrine_EventListenerTestCase
());
//$test->addTestCase(new Doctrine_BatchIteratorTestCase());
$test
->
addTestCase
(
new
Doctrine_DQL_ParserTestCase
());
$test
->
addTestCase
(
new
Doctrine_BatchIteratorTestCase
());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
$test
->
addTestCase
(
new
Doctrine_DQL_ParserTestCase
());
...
...
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