mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing use of third parameter of fetchAll()
This commit is contained in:
parent
65a641af23
commit
097191213b
1 changed files with 4 additions and 4 deletions
|
@ -832,7 +832,7 @@ class DboSource extends DataSource {
|
|||
|
||||
$query = $this->generateAssociationQuery($model, $null, null, null, null, $queryData, false, $null);
|
||||
|
||||
$resultSet = $this->fetchAll($query, $model->cacheQueries, $model->alias);
|
||||
$resultSet = $this->fetchAll($query, $model->cacheQueries);
|
||||
|
||||
if ($resultSet === false) {
|
||||
$model->onError();
|
||||
|
@ -1001,7 +1001,7 @@ class DboSource extends DataSource {
|
|||
$q = $this->insertQueryData($query, null, $association, $assocData, $model, $linkModel, $stack);
|
||||
|
||||
if ($q != false) {
|
||||
$fetch = $this->fetchAll($q, $model->cacheQueries, $model->alias);
|
||||
$fetch = $this->fetchAll($q, $model->cacheQueries);
|
||||
} else {
|
||||
$fetch = null;
|
||||
}
|
||||
|
@ -1013,7 +1013,7 @@ class DboSource extends DataSource {
|
|||
if ($type !== 'hasAndBelongsToMany') {
|
||||
$q = $this->insertQueryData($query, $resultSet[$i], $association, $assocData, $model, $linkModel, $stack);
|
||||
if ($q != false) {
|
||||
$fetch = $this->fetchAll($q, $model->cacheQueries, $model->alias);
|
||||
$fetch = $this->fetchAll($q, $model->cacheQueries);
|
||||
} else {
|
||||
$fetch = null;
|
||||
}
|
||||
|
@ -1088,7 +1088,7 @@ class DboSource extends DataSource {
|
|||
if (count($ids) > 1) {
|
||||
$query = str_replace('= (', 'IN (', $query);
|
||||
}
|
||||
return $this->fetchAll($query, $model->cacheQueries, $model->alias);
|
||||
return $this->fetchAll($query, $model->cacheQueries);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue