mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Merge pull request #3015 from cakephp/dbosource-bc-fix
2.5 - Dbosource bc fix
This commit is contained in:
commit
100595b717
1 changed files with 5 additions and 1 deletions
|
@ -1641,9 +1641,13 @@ class DboSource extends DataSource {
|
|||
* String representing a query.
|
||||
* True, when $external is false and association $type is 'hasOne' or 'belongsTo'.
|
||||
*/
|
||||
public function generateAssociationQuery(Model $Model, Model $LinkModel, $type, $association, $assocData, &$queryData, $external) {
|
||||
public function generateAssociationQuery(Model $Model, $LinkModel, $type, $association, $assocData, &$queryData, $external) {
|
||||
$assocData = $this->_scrubQueryData($assocData);
|
||||
|
||||
if ($LinkModel === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($external && !empty($assocData['finderQuery'])) {
|
||||
return $assocData['finderQuery'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue