Fix typo variable name in _deleteDependent().

It's not a big deal but there was a typo in _deleteDependent() method. 

$savedAssociatons instead of $savedAssociations.
This commit is contained in:
Damien Biasotto 2013-05-29 14:25:39 +03:00
parent 49aded5399
commit e1c27af9e9

View file

@ -2449,7 +2449,7 @@ class Model extends Object implements CakeEventListener {
return; return;
} }
if (!empty($this->__backAssociation)) { if (!empty($this->__backAssociation)) {
$savedAssociatons = $this->__backAssociation; $savedAssociations = $this->__backAssociation;
$this->__backAssociation = array(); $this->__backAssociation = array();
} }
@ -2485,8 +2485,8 @@ class Model extends Object implements CakeEventListener {
} }
} }
} }
if (isset($savedAssociatons)) { if (isset($savedAssociations)) {
$this->__backAssociation = $savedAssociatons; $this->__backAssociation = $savedAssociations;
} }
} }