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
2ce1c5f4
Commit
2ce1c5f4
authored
May 24, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
755f30f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
Hydrate.php
lib/Doctrine/Hydrate.php
+5
-5
Query.php
lib/Doctrine/Query.php
+1
-1
Abstract.php
lib/Doctrine/Query/Abstract.php
+10
-10
No files found.
lib/Doctrine/Hydrate.php
View file @
2ce1c5f4
...
...
@@ -62,7 +62,7 @@ class Doctrine_Hydrate
/**
* @var array $params query input parameters
*/
protected
$params
=
array
();
protected
$
_
params
=
array
();
/**
* @var Doctrine_Connection $conn Doctrine_Connection object
*/
...
...
@@ -84,7 +84,7 @@ class Doctrine_Hydrate
*
* subAgg the subquery aggregates of this component
*/
protected
$_aliasMap
=
array
();
protected
$_aliasMap
=
array
();
/**
*
*/
...
...
@@ -386,7 +386,7 @@ class Doctrine_Hydrate
*/
public
function
getParams
()
{
return
$this
->
params
;
return
$this
->
_
params
;
}
/**
* setParams
...
...
@@ -394,7 +394,7 @@ class Doctrine_Hydrate
* @param array $params
*/
public
function
setParams
(
array
$params
=
array
())
{
$this
->
params
=
$params
;
$this
->
_
params
=
$params
;
}
public
function
convertEnums
(
$params
)
{
...
...
@@ -445,7 +445,7 @@ class Doctrine_Hydrate
*/
public
function
execute
(
$params
=
array
(),
$return
=
Doctrine
::
FETCH_RECORD
)
{
$params
=
$this
->
_conn
->
convertBooleans
(
array_merge
(
$this
->
params
,
$params
));
$params
=
$this
->
_conn
->
convertBooleans
(
array_merge
(
$this
->
_
params
,
$params
));
$params
=
$this
->
convertEnums
(
$params
);
if
(
!
$this
->
_view
)
{
...
...
lib/Doctrine/Query.php
View file @
2ce1c5f4
...
...
@@ -1133,7 +1133,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$params
=
array
(
$params
);
}
// append parameters
$params
=
array_merge
(
$this
->
params
,
$params
);
$params
=
array_merge
(
$this
->
_
params
,
$params
);
return
(
int
)
$this
->
getConnection
()
->
fetchOne
(
$q
,
$params
);
}
...
...
lib/Doctrine/Query/Abstract.php
View file @
2ce1c5f4
...
...
@@ -54,9 +54,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
public
function
addWhere
(
$where
,
$params
=
array
())
{
if
(
is_array
(
$params
))
{
$this
->
params
=
array_merge
(
$this
->
params
,
$params
);
$this
->
_params
=
array_merge
(
$this
->
_
params
,
$params
);
}
else
{
$this
->
params
[]
=
$params
;
$this
->
_
params
[]
=
$params
;
}
return
$this
->
parseQueryPart
(
'where'
,
$where
,
true
);
}
...
...
@@ -82,9 +82,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
public
function
addHaving
(
$having
,
$params
=
array
())
{
if
(
is_array
(
$params
))
{
$this
->
params
=
array_merge
(
$this
->
params
,
$params
);
$this
->
_params
=
array_merge
(
$this
->
_
params
,
$params
);
}
else
{
$this
->
params
[]
=
$params
;
$this
->
_
params
[]
=
$params
;
}
return
$this
->
parseQueryPart
(
'having'
,
$having
,
true
);
}
...
...
@@ -227,11 +227,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/
public
function
where
(
$where
,
$params
=
array
())
{
$this
->
params
=
array
();
$this
->
_
params
=
array
();
if
(
is_array
(
$params
))
{
$this
->
params
=
$params
;
$this
->
_
params
=
$params
;
}
else
{
$this
->
params
[]
=
$params
;
$this
->
_
params
[]
=
$params
;
}
return
$this
->
parseQueryPart
(
'where'
,
$where
);
...
...
@@ -246,11 +246,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/
public
function
having
(
$having
,
$params
=
array
())
{
$this
->
params
=
array
();
$this
->
_
params
=
array
();
if
(
is_array
(
$params
))
{
$this
->
params
=
$params
;
$this
->
_
params
=
$params
;
}
else
{
$this
->
params
[]
=
$params
;
$this
->
_
params
[]
=
$params
;
}
return
$this
->
parseQueryPart
(
'having'
,
$having
);
...
...
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