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
aa48f564
Commit
aa48f564
authored
May 10, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
9ea8d5da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
45 deletions
+2
-45
Hydrate.php
draft/new-core/Hydrate.php
+2
-45
No files found.
draft/new-core/Hydrate.php
View file @
aa48f564
...
...
@@ -58,19 +58,10 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
* constant for CREATE queries
*/
const
CREATE
=
4
;
/**
* @var array $fetchmodes an array containing all fetchmodes
*/
protected
$fetchModes
=
array
();
/**
* @var array $tables an array containing all the tables used in the query
*/
protected
$tables
=
array
();
/**
* @var array $collections an array containing all collections
* this hydrater has created/will create
*/
protected
$collections
=
array
();
/**
* @var array $joins an array containing all table joins
*/
...
...
@@ -349,40 +340,6 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
}
return
$this
->
tableAliases
[
$path
];
}
/**
* getCollection
*
* @parma string $name component name
* @param integer $index
*/
private
function
getCollection
(
$name
)
{
$table
=
$this
->
tables
[
$name
];
if
(
!
isset
(
$this
->
fetchModes
[
$name
]))
{
return
new
Doctrine_Collection
(
$table
);
}
switch
(
$this
->
fetchModes
[
$name
])
{
case
Doctrine
::
FETCH_BATCH
:
$coll
=
new
Doctrine_Collection_Batch
(
$table
);
break
;
case
Doctrine
::
FETCH_LAZY
:
$coll
=
new
Doctrine_Collection_Lazy
(
$table
);
break
;
case
Doctrine
::
FETCH_OFFSET
:
$coll
=
new
Doctrine_Collection_Offset
(
$table
);
break
;
case
Doctrine
::
FETCH_IMMEDIATE
:
$coll
=
new
Doctrine_Collection_Immediate
(
$table
);
break
;
case
Doctrine
::
FETCH_LAZY_OFFSET
:
$coll
=
new
Doctrine_Collection_LazyOffset
(
$table
);
break
;
default
:
throw
new
Doctrine_Exception
(
"Unknown fetchmode"
);
};
return
$coll
;
}
/**
* setParams
*
...
...
@@ -748,9 +705,9 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
$data
[
$component
][
$field
]
=
$value
;
unset
(
$data
[
$key
]);
}
;
}
$array
[]
=
$data
;
}
;
}
$stmt
->
closeCursor
();
return
$array
;
...
...
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