mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #1309 from damien-biasotto/patch-1
Fix typo variable name in _deleteDependent().
This commit is contained in:
commit
5c38b7e66c
1 changed files with 3 additions and 3 deletions
|
@ -2449,7 +2449,7 @@ class Model extends Object implements CakeEventListener {
|
|||
return;
|
||||
}
|
||||
if (!empty($this->__backAssociation)) {
|
||||
$savedAssociatons = $this->__backAssociation;
|
||||
$savedAssociations = $this->__backAssociation;
|
||||
$this->__backAssociation = array();
|
||||
}
|
||||
|
||||
|
@ -2485,8 +2485,8 @@ class Model extends Object implements CakeEventListener {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (isset($savedAssociatons)) {
|
||||
$this->__backAssociation = $savedAssociatons;
|
||||
if (isset($savedAssociations)) {
|
||||
$this->__backAssociation = $savedAssociations;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue