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
999c72bb
Commit
999c72bb
authored
May 20, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
0b9ea73a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
25 deletions
+10
-25
Hydrate.php
lib/Doctrine/Hydrate.php
+10
-25
No files found.
lib/Doctrine/Hydrate.php
View file @
999c72bb
...
@@ -68,9 +68,10 @@ class Doctrine_Hydrate
...
@@ -68,9 +68,10 @@ class Doctrine_Hydrate
*/
*/
protected
$conn
;
protected
$conn
;
/**
/**
* @var Doctrine_View $view Doctrine_View object
* @var Doctrine_View $_view Doctrine_View object, when set this object will use the
* the query given by the view object for object population
*/
*/
protected
$view
;
protected
$
_
view
;
/**
/**
* @var array $_aliasMap two dimensional array containing the map for query aliases
* @var array $_aliasMap two dimensional array containing the map for query aliases
* Main keys are component aliases
* Main keys are component aliases
...
@@ -82,11 +83,6 @@ class Doctrine_Hydrate
...
@@ -82,11 +83,6 @@ class Doctrine_Hydrate
* parent the alias of the parent
* parent the alias of the parent
*/
*/
protected
$_aliasMap
=
array
();
protected
$_aliasMap
=
array
();
/**
* @var array $tableAliases
*/
protected
$tableAliases
=
array
();
/**
/**
*
*
*/
*/
...
@@ -101,7 +97,8 @@ class Doctrine_Hydrate
...
@@ -101,7 +97,8 @@ class Doctrine_Hydrate
*/
*/
protected
$aggregateMap
=
array
();
protected
$aggregateMap
=
array
();
/**
/**
* @var Doctrine_Hydrate_Alias $aliasHandler
* @var Doctrine_Hydrate_Alias $aliasHandler handles the creation and storage of table aliases and
* binds the aliases to component aliases / paths
*/
*/
protected
$aliasHandler
;
protected
$aliasHandler
;
/**
/**
...
@@ -140,19 +137,7 @@ class Doctrine_Hydrate
...
@@ -140,19 +137,7 @@ class Doctrine_Hydrate
$this
->
conn
=
$connection
;
$this
->
conn
=
$connection
;
$this
->
aliasHandler
=
new
Doctrine_Hydrate_Alias
();
$this
->
aliasHandler
=
new
Doctrine_Hydrate_Alias
();
}
}
/**
* getTableAliases
*
* @return array
*/
public
function
getTableAliases
()
{
return
$this
->
tableAliases
;
}
public
function
setTableAliases
(
array
$aliases
)
{
$this
->
tableAliases
=
$aliases
;
}
public
function
getTableAlias
(
$componentAlias
)
public
function
getTableAlias
(
$componentAlias
)
{
{
return
$this
->
aliasHandler
->
getShortAlias
(
$componentAlias
);
return
$this
->
aliasHandler
->
getShortAlias
(
$componentAlias
);
...
@@ -290,7 +275,7 @@ class Doctrine_Hydrate
...
@@ -290,7 +275,7 @@ class Doctrine_Hydrate
*/
*/
public
function
setView
(
Doctrine_View
$view
)
public
function
setView
(
Doctrine_View
$view
)
{
{
$this
->
view
=
$view
;
$this
->
_
view
=
$view
;
}
}
/**
/**
* getView
* getView
...
@@ -300,7 +285,7 @@ class Doctrine_Hydrate
...
@@ -300,7 +285,7 @@ class Doctrine_Hydrate
*/
*/
public
function
getView
()
public
function
getView
()
{
{
return
$this
->
view
;
return
$this
->
_
view
;
}
}
/**
/**
* getParams
* getParams
...
@@ -331,10 +316,10 @@ class Doctrine_Hydrate
...
@@ -331,10 +316,10 @@ class Doctrine_Hydrate
$params
=
$this
->
conn
->
convertBooleans
(
array_merge
(
$this
->
params
,
$params
));
$params
=
$this
->
conn
->
convertBooleans
(
array_merge
(
$this
->
params
,
$params
));
$params
=
$this
->
convertEnums
(
$params
);
$params
=
$this
->
convertEnums
(
$params
);
if
(
!
$this
->
view
)
{
if
(
!
$this
->
_
view
)
{
$query
=
$this
->
getQuery
(
$params
);
$query
=
$this
->
getQuery
(
$params
);
}
else
{
}
else
{
$query
=
$this
->
view
->
getSelectSql
();
$query
=
$this
->
_
view
->
getSelectSql
();
}
}
if
(
$this
->
isLimitSubqueryUsed
()
&&
if
(
$this
->
isLimitSubqueryUsed
()
&&
...
...
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