mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
a0bc69adb8
commit
0fc3cd00d3
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue