mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Be more semantic indicating that association fields must be empty.
This commit is contained in:
parent
99c8503578
commit
8355d32bb1
1 changed files with 3 additions and 3 deletions
|
@ -1046,11 +1046,11 @@ class DboSource extends DataSource {
|
|||
$Model->recursive = $recursive;
|
||||
}
|
||||
|
||||
$bypass = false;
|
||||
if (!empty($queryData['fields'])) {
|
||||
$bypass = true;
|
||||
$noAssocFields = true;
|
||||
$queryData['fields'] = $this->fields($Model, null, $queryData['fields']);
|
||||
} else {
|
||||
$noAssocFields = false;
|
||||
$queryData['fields'] = $this->fields($Model);
|
||||
}
|
||||
|
||||
|
@ -1076,7 +1076,7 @@ class DboSource extends DataSource {
|
|||
continue;
|
||||
}
|
||||
|
||||
if ($bypass) {
|
||||
if ($noAssocFields) {
|
||||
$assocData['fields'] = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue