We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be5de9 commit 3cdf89dCopy full SHA for 3cdf89d
cake/libs/model/model.php
@@ -1789,8 +1789,6 @@ function _deleteDependent($id, $cascade) {
1789
* @access protected
1790
*/
1791
function _deleteLinks($id) {
1792
- $db =& ConnectionManager::getDataSource($this->useDbConfig);
1793
-
1794
foreach ($this->hasAndBelongsToMany as $assoc => $data) {
1795
$records = $this->{$data['with']}->find('all', array(
1796
'conditions' => array_merge(array($this->{$data['with']}->escapeField($data['foreignKey']) => $id)),
0 commit comments