Merge pull request #3015 from cakephp/dbosource-bc-fix

2.5 - Dbosource bc fix
This commit is contained in:
Mark Story 2014-03-14 14:28:21 -04:00
commit 100595b717

View file

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