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
26ee84d5
Commit
26ee84d5
authored
Sep 24, 2007
by
mahono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in Doctrine_Query::copy() - params were not copied
parent
e9ba4504
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
132 deletions
+139
-132
Query.php
lib/Doctrine/Query.php
+139
-132
No files found.
lib/Doctrine/Query.php
View file @
26ee84d5
...
@@ -1448,7 +1448,6 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
...
@@ -1448,7 +1448,6 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
.
$table
->
getColumnName
(
$table
->
getIdentifier
())
.
$table
->
getColumnName
(
$table
->
getIdentifier
())
.
' = '
.
' = '
.
$assocAlias
.
'.'
.
$relation
->
getForeign
();
.
$assocAlias
.
'.'
.
$relation
->
getForeign
();
}
}
$this
->
parts
[
'from'
][]
=
$queryPart
;
$this
->
parts
[
'from'
][]
=
$queryPart
;
...
@@ -1641,6 +1640,13 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
...
@@ -1641,6 +1640,13 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
return
$this
->
execute
(
$params
,
$hydrationMode
);
return
$this
->
execute
(
$params
,
$hydrationMode
);
}
}
/**
* Copies a Doctrine_Query object.
*
* @param Doctrine_Query Doctrine query instance.
* If ommited the instance itself will be used as source.
* @return Doctrine_Query Copy of the Doctrine_Query instance.
*/
public
function
copy
(
Doctrine_Query
$query
=
null
)
public
function
copy
(
Doctrine_Query
$query
=
null
)
{
{
if
(
!
$query
)
{
if
(
!
$query
)
{
...
@@ -1649,6 +1655,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
...
@@ -1649,6 +1655,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$new
=
new
Doctrine_Query
();
$new
=
new
Doctrine_Query
();
$new
->
_dqlParts
=
$query
->
_dqlParts
;
$new
->
_dqlParts
=
$query
->
_dqlParts
;
$new
->
_params
=
$query
->
_params
;
$new
->
_hydrationMode
=
$query
->
_hydrationMode
;
$new
->
_hydrationMode
=
$query
->
_hydrationMode
;
return
$new
;
return
$new
;
...
...
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