Skip to content

Commit 3cdf89d

Browse files
committed
Removing unused $db in Model::_deleteLinks. Fixes #6384
1 parent 8be5de9 commit 3cdf89d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cake/libs/model/model.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,8 +1789,6 @@ function _deleteDependent($id, $cascade) {
17891789
* @access protected
17901790
*/
17911791
function _deleteLinks($id) {
1792-
$db =& ConnectionManager::getDataSource($this->useDbConfig);
1793-
17941792
foreach ($this->hasAndBelongsToMany as $assoc => $data) {
17951793
$records = $this->{$data['with']}->find('all', array(
17961794
'conditions' => array_merge(array($this->{$data['with']}->escapeField($data['foreignKey']) => $id)),

0 commit comments

Comments
 (0)