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
0b9c990d
Commit
0b9c990d
authored
May 22, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Intermediate checkin.
parent
a4216926
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
AbstractQuery.php
lib/Doctrine/ORM/AbstractQuery.php
+8
-12
ParserResult.php
lib/Doctrine/ORM/Query/ParserResult.php
+14
-5
No files found.
lib/Doctrine/ORM/AbstractQuery.php
View file @
0b9c990d
...
...
@@ -64,7 +64,7 @@ abstract class AbstractQuery
/**
* @var array $_enumParams Array containing the keys of the parameters that should be enumerated.
*/
protected
$_enumParams
=
array
();
//
protected $_enumParams = array();
/**
* The user-specified ResultSetMapping to use.
...
...
@@ -141,20 +141,20 @@ abstract class AbstractQuery
*
* @param array $enumParams Enum parameters.
*/
protected
function
_setEnumParams
(
$enumParams
=
array
())
/*
protected function _setEnumParams($enumParams = array())
{
$this->_enumParams = $enumParams;
}
}
*/
/**
* Get all enumerated parameters
*
* @return array All enumerated parameters
*/
public
function
getEnumParams
()
/*
public function getEnumParams()
{
return $this->_enumParams;
}
}
*/
/**
* Convert ENUM parameters to their integer equivalents
...
...
@@ -162,7 +162,7 @@ abstract class AbstractQuery
* @param $params Parameters to be converted
* @return array Converted parameters array
*/
public
function
convertEnums
(
$params
)
/*
public function convertEnums($params)
{
foreach ($this->_enumParams as $key => $values) {
if (isset($params[$key]) && ! empty($values)) {
...
...
@@ -171,7 +171,7 @@ abstract class AbstractQuery
}
return $params;
}
}
*/
/**
* Get all defined parameters
...
...
@@ -507,11 +507,7 @@ abstract class AbstractQuery
*/
protected
function
_prepareParams
(
array
$params
)
{
// Convert boolean params
$params
=
$this
->
_em
->
getConnection
()
->
getDatabasePlatform
()
->
convertBooleans
(
$params
);
// Convert enum params
return
$this
->
convertEnums
(
$params
);
return
$this
->
_em
->
getConnection
()
->
getDatabasePlatform
()
->
convertBooleans
(
$params
);
}
/**
...
...
lib/Doctrine/ORM/Query/ParserResult.php
View file @
0b9c990d
...
...
@@ -27,6 +27,7 @@ namespace Doctrine\ORM\Query;
*
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Janne Vanhala <jpvanhal@cc.hut.fi>
* @author Roman Borschel <roman@code-factory.org>
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link http://www.doctrine-project.org
* @since 2.0
...
...
@@ -34,9 +35,13 @@ namespace Doctrine\ORM\Query;
*/
class
ParserResult
{
pr
otected
$_sqlExecutor
;
pr
otected
$_resultSetMapping
;
pr
ivate
$_sqlExecutor
;
pr
ivate
$_resultSetMapping
;
/**
* Initializes a new instance of the <tt>ParserResult</tt> class.
* The new instance is initialized with an empty <tt>ResultSetMapping</tt>.
*/
public
function
__construct
()
{
$this
->
_resultSetMapping
=
new
ResultSetMapping
;
...
...
@@ -64,7 +69,9 @@ class ParserResult
}
/**
* @nodoc
* Sets the SQL executor that should be used for this ParserResult.
*
* @param AbstractExecutor $executor
*/
public
function
setSqlExecutor
(
\Doctrine\ORM\Query\Exec\AbstractExecutor
$executor
)
{
...
...
@@ -72,7 +79,9 @@ class ParserResult
}
/**
* @nodoc
* Gets the SQL executor used by this ParserResult.
*
* @return AbstractExecutor
*/
public
function
getSqlExecutor
()
{
...
...
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