Add some corrections
This commit is contained in:
parent
7ca0ac289e
commit
79a9ce5000
@ -111,7 +111,7 @@ class ArrayHydrator extends AbstractHydrator
|
||||
// Get a reference to the right element in the result tree.
|
||||
// This element will get the associated element attached.
|
||||
if ($this->_rsm->isMixed && isset($this->_rootAliases[$parent])) {
|
||||
$first = reset($this->_resultPointers);
|
||||
$first = reset($this->_resultPointers);
|
||||
// TODO: Exception if $key === null ?
|
||||
$baseElement =& $this->_resultPointers[$parent][key($first)];
|
||||
} else if (isset($this->_resultPointers[$parent])) {
|
||||
|
@ -348,7 +348,7 @@ final class Query extends AbstractQuery
|
||||
* Returns the cache driver used for query caching.
|
||||
*
|
||||
* @return CacheDriver The cache driver used for query caching or NULL, if
|
||||
* this Query does not use query caching.
|
||||
* this Query does not use query caching.
|
||||
*/
|
||||
public function getQueryCacheDriver()
|
||||
{
|
||||
|
@ -2046,8 +2046,8 @@ class SqlWalker implements TreeWalker
|
||||
public function walkArithmeticExpression($arithmeticExpr)
|
||||
{
|
||||
return ($arithmeticExpr->isSimpleArithmeticExpression())
|
||||
? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
|
||||
: '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
|
||||
? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
|
||||
: '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user