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
330bf1d4
Commit
330bf1d4
authored
May 16, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
f26217c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
Hydrate.php
lib/Doctrine/Hydrate.php
+13
-1
Query.php
lib/Doctrine/Query.php
+1
-1
No files found.
lib/Doctrine/Hydrate.php
View file @
330bf1d4
...
...
@@ -398,8 +398,12 @@ class Doctrine_Hydrate
reset
(
$this
->
_aliasMap
);
$rootMap
=
current
(
$this
->
_aliasMap
);
$rootAlias
=
key
(
$this
->
_aliasMap
);
$coll
=
new
Doctrine_Collection
2
(
$rootMap
[
'table'
]);
$coll
=
new
Doctrine_Collection
(
$rootMap
[
'table'
]);
$prev
[
$rootAlias
]
=
$coll
;
// we keep track of all the collections
$colls
=
array
();
$colls
[]
=
$coll
;
$prevRow
=
array
();
/**
...
...
@@ -471,6 +475,9 @@ class Doctrine_Hydrate
// previous entry found from memory
$prev
[
$alias
]
=
$prev
[
$parentAlias
]
->
getLast
()
->
get
(
$relation
->
getAlias
());
}
$colls
[]
=
$prev
[
$alias
];
// add record to the current collection
if
(
$identifiable
)
{
$prev
[
$alias
]
->
add
(
$record
);
...
...
@@ -491,6 +498,11 @@ class Doctrine_Hydrate
$prevRow
[
$tableAlias
]
=
$row
;
}
}
// take snapshots from all initialized collections
foreach
(
array_unique
(
$colls
)
as
$coll
)
{
$coll
->
takeSnapshot
();
}
return
$coll
;
}
/**
...
...
lib/Doctrine/Query.php
View file @
330bf1d4
...
...
@@ -30,7 +30,7 @@ Doctrine::autoload('Doctrine_Hydrate');
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class
Doctrine_Query
extends
Doctrine_Hydrate
2
implements
Countable
class
Doctrine_Query
extends
Doctrine_Hydrate
implements
Countable
{
/**
* @param array $subqueryAliases the table aliases needed in some LIMIT subqueries
...
...
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