Be more semantic indicating that association fields must be empty.

This commit is contained in:
Ber Clausen 2013-12-20 00:57:38 -03:00
parent 99c8503578
commit 8355d32bb1

View file

@ -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;
}