Permalink
Browse files

Removing unused $db in Model::_deleteLinks. Fixes #6384

  • Loading branch information...
1 parent 8be5de9 commit 3cdf89dc18072aa6629ada67ca90f8b7cad8311f @markstory markstory committed Aug 31, 2009
Showing with 0 additions and 2 deletions.
  1. +0 −2 cake/libs/model/model.php
@@ -1789,8 +1789,6 @@ function _deleteDependent($id, $cascade) {
* @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)),

0 comments on commit 3cdf89d

Please sign in to comment.