Permalink
Browse files

Fix typo variable name in _deleteDependent().

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

$savedAssociatons instead of $savedAssociations.
  • Loading branch information...
1 parent 49aded5 commit e1c27af9e9d7d6d8a2c36f6aef63fa266afb7fae @damien-biasotto damien-biasotto committed May 29, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Model/Model.php
View
6 lib/Cake/Model/Model.php
@@ -2449,7 +2449,7 @@ protected function _deleteDependent($id, $cascade) {
return;
}
if (!empty($this->__backAssociation)) {
- $savedAssociatons = $this->__backAssociation;
+ $savedAssociations = $this->__backAssociation;
$this->__backAssociation = array();
}
@@ -2485,8 +2485,8 @@ protected function _deleteDependent($id, $cascade) {
}
}
}
- if (isset($savedAssociatons)) {
- $this->__backAssociation = $savedAssociatons;
+ if (isset($savedAssociations)) {
+ $this->__backAssociation = $savedAssociations;
}
}

0 comments on commit e1c27af

Please sign in to comment.