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
e45ae7d0
Commit
e45ae7d0
authored
Sep 06, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
4eac440c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Hydrate.php
lib/Doctrine/Hydrate.php
+6
-3
No files found.
lib/Doctrine/Hydrate.php
View file @
e45ae7d0
...
...
@@ -1024,6 +1024,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
}
}
// dealing with root component
$table
=
$this
->
_aliasMap
[
$rootAlias
][
'table'
];
$componentName
=
$table
->
getComponentName
();
...
...
@@ -1032,9 +1033,10 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
$oneToOne
=
false
;
$index
=
$driver
->
search
(
$element
,
$array
);
if
(
$index
===
false
)
{
if
(
isset
(
$map
[
'map'
]))
{
$key
=
$map
[
'map'
];
if
(
$index
===
false
)
{
if
(
isset
(
$this
->
_aliasMap
[
$rootAlias
][
'map'
]))
{
$key
=
$this
->
_aliasMap
[
$rootAlias
][
'map'
];
if
(
isset
(
$array
[
$key
]))
{
throw
new
Doctrine_Hydrate_Exception
(
"Couldn't hydrate. Found non-unique key mapping."
);
}
...
...
@@ -1042,6 +1044,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
if
(
!
isset
(
$element
[
$key
]))
{
throw
new
Doctrine_Hydrate_Exception
(
"Couldn't hydrate. Found a non-existent key."
);
}
$array
[
$element
[
$key
]]
=
$element
;
}
else
{
$array
[]
=
$element
;
...
...
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