Removed un-necessary getIterator().
This commit is contained in:
parent
6521e51170
commit
9445502885
3 changed files with 3 additions and 3 deletions
|
@ -762,7 +762,7 @@ abstract class AbstractQuery
|
||||||
{
|
{
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
|
|
||||||
foreach ($this->getParameters()->getIterator() as $parameter) {
|
foreach ($this->getParameters() as $parameter) {
|
||||||
$parameters[$parameter->getName()] = $this->processParameterValue($parameter->getValue());
|
$parameters[$parameter->getName()] = $this->processParameterValue($parameter->getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ final class NativeQuery extends AbstractQuery
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$types = array();
|
$types = array();
|
||||||
|
|
||||||
foreach ($this->getParameters()->getIterator() as $parameter) {
|
foreach ($this->getParameters() as $parameter) {
|
||||||
$name = $parameter->getName();
|
$name = $parameter->getName();
|
||||||
$value = $this->processParameterValue($parameter->getValue());
|
$value = $this->processParameterValue($parameter->getValue());
|
||||||
$type = ($parameter->getValue() === $value)
|
$type = ($parameter->getValue() === $value)
|
||||||
|
|
|
@ -275,7 +275,7 @@ final class Query extends AbstractQuery
|
||||||
$sqlParams = array();
|
$sqlParams = array();
|
||||||
$types = array();
|
$types = array();
|
||||||
|
|
||||||
foreach ($this->parameters->getIterator() as $parameter) {
|
foreach ($this->parameters as $parameter) {
|
||||||
$key = $parameter->getName();
|
$key = $parameter->getName();
|
||||||
|
|
||||||
if ( ! isset($paramMappings[$key])) {
|
if ( ! isset($paramMappings[$key])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue