From 3cdf89dc18072aa6629ada67ca90f8b7cad8311f Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 30 Aug 2009 20:09:07 -0400 Subject: [PATCH] Removing unused $db in Model::_deleteLinks. Fixes #6384 --- cake/libs/model/model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 657aa61dc..d437edf8e 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -1789,8 +1789,6 @@ class Model extends Overloadable { * @access protected */ function _deleteLinks($id) { - $db =& ConnectionManager::getDataSource($this->useDbConfig); - foreach ($this->hasAndBelongsToMany as $assoc => $data) { $records = $this->{$data['with']}->find('all', array( 'conditions' => array_merge(array($this->{$data['with']}->escapeField($data['foreignKey']) => $id)),