Skip to content

Commit

Permalink
Removing unused $db in Model::_deleteLinks. Fixes #6384
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 31, 2009
1 parent 8be5de9 commit 3cdf89d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cake/libs/model/model.php
Expand Up @@ -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)),
Expand Down

0 comments on commit 3cdf89d

Please sign in to comment.