Adding fix for #2505

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4956 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-01 00:19:42 +00:00
parent a0bc69adb8
commit 0fc3cd00d3

View file

@ -1237,6 +1237,7 @@ class Model extends Overloadable {
}
$this->_deleteDependent($id, $cascade);
$this->_deleteLinks($id);
$this->id = $id;
if ($db->delete($this)) {
if (!empty($this->behaviors)) {