mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing unused $db in Model::_deleteLinks. Fixes #6384
This commit is contained in:
parent
8be5de947b
commit
3cdf89dc18
1 changed files with 0 additions and 2 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue