mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Merge pull request #3481 from okinaka/master
Unset $db in DboSource::read().
This commit is contained in:
commit
418c0a7b7c
1 changed files with 1 additions and 0 deletions
|
@ -1140,6 +1140,7 @@ class DboSource extends DataSource {
|
|||
$stack['_joined'] = $joined;
|
||||
|
||||
$db->queryAssociation($Model, $LinkModel, $type, $assoc, $assocData, $array, true, $resultSet, $Model->recursive - 1, $stack);
|
||||
unset($db);
|
||||
|
||||
if ($type === 'hasMany' || $type === 'hasAndBelongsToMany') {
|
||||
$filtered[] = $assoc;
|
||||
|
|
Loading…
Add table
Reference in a new issue