mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
"Fixes #3681, cascade has no effect"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6112 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
1c8577ed34
commit
3a58f3cab6
1 changed files with 4 additions and 1 deletions
|
@ -1429,7 +1429,10 @@ class Model extends Overloadable {
|
|||
|
||||
foreach ($ids as $id) {
|
||||
$this->_deleteLinks($id);
|
||||
$this->_deleteDependent($id, $cascade);
|
||||
|
||||
if ($cascade) {
|
||||
$this->_deleteDependent($id, $cascade);
|
||||
}
|
||||
}
|
||||
|
||||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
||||
|
|
Loading…
Add table
Reference in a new issue