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
274be06c
Commit
274be06c
authored
Apr 17, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #969.
parent
0370cedc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Hydrator.php
lib/Doctrine/Hydrator.php
+4
-4
Record.php
lib/Doctrine/Record.php
+1
-0
No files found.
lib/Doctrine/Hydrator.php
View file @
274be06c
...
...
@@ -38,8 +38,7 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
* hydrateResultSet
* parses the data returned by statement object
*
* This is method defines the core of Doctrine's object population algorithm
* hence this method strives to be as fast as possible
* This is method defines the core of Doctrine's object population algorithm.
*
* The key idea is the loop over the rowset only once doing all the needed operations
* within this massive loop.
...
...
@@ -88,7 +87,8 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
$isSimpleQuery
=
count
(
$this
->
_queryComponents
)
<=
1
;
// Holds hydration listeners that get called during hydration
$listeners
=
array
();
// Lookup map to quickly discover/lookup existing records in the result
// Lookup map to quickly discover/lookup existing records in the result
// It's the identifier "memory"
$identifierMap
=
array
();
// Holds for each component the last previously seen element in the result set
$prev
=
array
();
...
...
@@ -230,7 +230,7 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract
$oneToOne
=
true
;
if
(
!
isset
(
$nonemptyComponents
[
$dqlAlias
]))
{
$prev
[
$parent
][
$relationAlias
]
=
$driver
->
getNullPointer
();
}
else
{
}
else
if
(
!
isset
(
$prev
[
$parent
][
$relationAlias
]))
{
$element
=
$driver
->
getElement
(
$data
,
$componentName
);
$prev
[
$parent
][
$relationAlias
]
=
$element
;
}
...
...
lib/Doctrine/Record.php
View file @
274be06c
...
...
@@ -531,6 +531,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
*
* @param array $data
* @return boolean
* @todo ActiveRecord method
*/
public
function
hydrate
(
array
$data
)
{
...
...
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